You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
After upgrading to v5 of CRA, which uses a new version of WebPack, my application build fails because the module 'vm' is not present.
To Reproduce
Steps to reproduce the behavior:
npx create-react-app my-app
cd my-app
npm install traverson
edit src/App.js
# add `import traverson from "traverson";` on top of the file
npm start
shows the following error:
ERROR in ./node_modules/jsonpath-plus/lib/jsonpath.js 43:20-33
Module not found: Error: Can't resolve 'vm' in '/Users/workspace/experiments/my-app/node_modules/jsonpath-plus/lib'
According to an issue in the jsonpath-plus repo (JSONPath-Plus/JSONPath#129) , the problem should be solved in versions 5.0.0 and up. As of 8.0.2, traverson uses jsonpath-plus v0.16.0. Upgrading to v5.0.0 should solve the problem
Node.js (please complete the following information):
OS: MacOS 10.14, Linux distro]
Node.js version:
Traverson Version: 8.0.2
Browser/Desktop (please complete the following information):
OS: MacOS 12.4
Traverson Version: 8.0.2
The text was updated successfully, but these errors were encountered:
Describe the bug
After upgrading to v5 of CRA, which uses a new version of WebPack, my application build fails because the module 'vm' is not present.
To Reproduce
Steps to reproduce the behavior:
shows the following error:
According to an issue in the jsonpath-plus repo (JSONPath-Plus/JSONPath#129) , the problem should be solved in versions 5.0.0 and up. As of 8.0.2, traverson uses jsonpath-plus v0.16.0. Upgrading to v5.0.0 should solve the problem
Node.js (please complete the following information):
Browser/Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: