Quantcast
Channel: Active questions tagged javascript - Stack Overflow
Viewing all articles
Browse latest Browse all 138249

Why I don't get import suggestions with babeljs

$
0
0

I'm using babel-env with vscode and yarn workspaces and when I'm loading a package (after compiling).

I don't get any suggestion for imports autocomplete..

My project structure:

|--packages
| |--common
|    |--src
|    |--dist
|    |--.babelrc
| |--server
|    |--src
|    |--dist
|    |--.babelrc
| |--web(create-react-app default settings)

babelrc setting:

{
  "presets": ["@babel/preset-env"]
}

build command:

rm -rf dist && babel ./src --out-dir dist --copy-files

example of import usage:

import { validation, functions } from "@project/common";

Then when I'm typing for exmaple validation.inputs I'm not getting any suggestions..

Maybe I need to ad some babel extensions, I searched in the docs but found nothing.

Thanks for helping


Viewing all articles
Browse latest Browse all 138249

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>