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

Critical dependency: the request of a dependency is an expression #94

Closed
jaywcjlove opened this issue May 15, 2021 · 3 comments
Closed

Comments

@jaywcjlove
Copy link
Member

jaywcjlove commented May 15, 2021

Creating an optimized production build...
Compiled with warnings.

./node_modules/@babel/standalone/babel.js
Critical dependency: the request of a dependency is an expression

./node_modules/@babel/standalone/babel.js
Critical dependency: the request of a dependency is an expression

临时解决方案

$ CI=false npm run doc
@jaywcjlove
Copy link
Member Author

jaywcjlove commented Nov 9, 2021

module.exports = {
  //...
  module: {
    exprContextCritical: false,
  },
};

https://webpack.js.org/configuration/module/#module-contexts

@jaywcjlove jaywcjlove pinned this issue Nov 9, 2021
@jaywcjlove
Copy link
Member Author

jaywcjlove added a commit to uiwjs/uiw that referenced this issue Jan 4, 2022
uiwjs/react-code-preview#94

Critical dependency: the request of a dependency is an expression

```shell
Creating an optimized production build...
Compiled with warnings.

./node_modules/@babel/standalone/babel.js
Critical dependency: the request of a dependency is an expression

./node_modules/@babel/standalone/babel.js
Critical dependency: the request of a dependency is an expression
```
jaywcjlove referenced this issue in uiwjs/react-split Jan 10, 2022
jaywcjlove referenced this issue in uiwjs/react-layout Jan 17, 2022
jaywcjlove added a commit to kktjs/markdown-react-code-preview-loader that referenced this issue May 11, 2022
github-actions bot added a commit to kktjs/markdown-react-code-preview-loader that referenced this issue May 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant