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

Cannot find module 'caniuse-lite' #10080

mkucaj1986 opened this issue Jun 11, 2019 · 2 comments


None yet
3 participants
Copy link

commented Jun 11, 2019

● Test suite failed to run

Cannot find module 'caniuse-lite/dist/unpacker/agents'

  at Object.<anonymous> (node_modules/@babel/preset-env/node_modules/browserslist/index.js:2:14)

On Gitlab Test Unit Runner

{ "presets": [ "@babel/preset-env", "@babel/preset-react" ], "plugins": [ "module:@trans-ui/components", "syntax-dynamic-import", "transform-class-properties" ], "env": { "production": { "plugins": [ [ "transform-react-remove-prop-types", { "mode": "wrap", "ignoreFilenames": [ "node_modules" ] } ] ] }, "test": { "presets": [ [ "@babel/preset-env", { "targets": { "node": "current" } } ], "@babel/preset-react" ], "plugins": [ "module:@trans-ui/components", "babel-plugin-dynamic-import-node" ] } } }
"@babel/cli": "^7.4.4",
"@babel/core": "^7.4.5",
"@babel/node": "^7.4.5",
"@babel/plugin-proposal-class-properties": "^7.4.4",
"@babel/plugin-proposal-object-rest-spread": "^7.4.4",
"@babel/plugin-syntax-dynamic-import": "^7.2.0",
"@babel/plugin-transform-runtime": "^7.4.4",
"@babel/polyfill": "7.0.0",
"@babel/preset-env": "7.0.0",
"@babel/preset-react": "7.0.0",
"assets": "^2.1.0",
"auto-styles-loader": "^1.0.2",
"autoprefixer": "6.0.0",
"babel-core": "^7.0.0-bridge.0",
"babel-eslint": "^8.2.3",
"babel-istanbul": "^0.12.1",
"babel-jest": "^24.8.0",
"babel-loader": "^8.0.0",
"babel-plugin-dynamic-import-node": "^1.2.0",
"babel-plugin-module-resolver": "^3.2.0",
"babel-plugin-transform-react-remove-prop-types": "^0.4.14",
"clean-webpack-plugin": "^0.1.19",
"css-loader": "^0.28.11",
"directory-named-webpack-plugin": "^4.0.0",
"eslint": "^4.13.1",
"eslint-config-airbnb": "^14.0.0",
"eslint-config-google": "^0.9.1",
"eslint-plugin-import": "^2.13.0",
"eslint-plugin-jest": "^21.3.2",
"eslint-plugin-jsx-a11y": "^6.0.0",
"eslint-plugin-react": "^6.8.0",


This comment has been minimized.

Copy link

commented Jun 11, 2019

Hey @mkucaj1986! We really appreciate you taking the time to report an issue. The collaborators
on this project attempt to help as many people as possible, but we're a limited number of volunteers,
so it's possible this won't be addressed swiftly.

If you need any help, or just have general Babel or JavaScript questions, we have a vibrant Slack
that typically always has someone willing to help. You can sign-up here
for an invite.


This comment has been minimized.

Copy link

commented Jun 15, 2019

What does this code log?

cd node_modules/@babel/preset-env/node_modules/browserslist && node -p "require.resolve('caniuse-lite')"

That package should be there (, so it is a bug with yarn/npm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.