Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Couldn't find preset "@babel/env" relative to directory #2

Open
Pasoul opened this issue Nov 14, 2018 · 0 comments
Open

Error: Couldn't find preset "@babel/env" relative to directory #2

Pasoul opened this issue Nov 14, 2018 · 0 comments
Labels
help wanted Extra attention is needed

Comments

@Pasoul
Copy link
Owner

Pasoul commented Nov 14, 2018

如果遇到此问题,应该在babel-loader配置中移除对node_modules校验

module: {
    rules: [
      {
        test: /\.js$/,
        loader: "babel-loader",
        exclude: /node_modules/
      }
    ]
  }

babel6只会对.babelrc进行处理,为了避免此问题,jlb-tools.babelrc 替换成 .babelrc.js

@Pasoul Pasoul added the help wanted Extra attention is needed label Nov 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant