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: require function is used in a way in which dependencies cannot be statically extracted #4

Closed
jericopulvera opened this issue Mar 1, 2018 · 1 comment
Labels

Comments

@jericopulvera
Copy link

jericopulvera commented Mar 1, 2018

tried using it in vuex actions.js

import DmsCoordinates from "dms-conversion";

./node_modules/dms-conversion/dms.js

7:24-31 Critical dependency: require function is used in a way in which dependencies cannot be statically extracted

@JeffJacobson JeffJacobson changed the title ritical dependency: require function is used in a way in which dependencies cannot be statically extracted Critical dependency: require function is used in a way in which dependencies cannot be statically extracted Mar 1, 2018
JeffJacobson added a commit that referenced this issue Mar 1, 2018
Running webpack with the current config generates the same error as described in issue #4.

```
WARNING in ./dms.ts
7:24-31 Critical dependency: require function is used in a way in which dependencies cannot be statically extracted
 @ ./dms.ts

WARNING in configuration
The 'mode' option has not been set. Set 'mode' option to 'development' or 'production' to enable defaults for this environment.
```
@JeffJacobson
Copy link
Contributor

@jericopulvera, I've published a new version on NPM, 3.1.0-alpha.1, which uses a different build process. Let me know if it fixes the issue you were having.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants