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

Update @babel/preset-env #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

momocow
Copy link

@momocow momocow commented Sep 13, 2020

I met this error when trying to build this plugin.

Following the suggestion here, I managed to fix it by updating @babel/preset-env to the lastest one which is now v7.11.5.

storybook-addon-i18next> npm run build

> storybook-addon-i18next@1.3.0 build <root>/storybook-addon-i18next
> rollup -c rollup.config.js


./src/preview.js → ./preview.js...
[!] (plugin babel) Error: Cannot find module '@babel/compat-data/corejs3-shipped-proposals'
Require stack:
- <root>/storybook-addon-i18next\node_modules\@babel\preset-env\lib\polyfills\corejs3\usage-plugin.js
- <root>/storybook-addon-i18next\node_modules\@babel\preset-env\lib\index.js
- <root>/storybook-addon-i18next\node_modules\@babel\core\lib\config\files\plugins.js
- <root>/storybook-addon-i18next\node_modules\@babel\core\lib\config\files\index.js
- <root>/storybook-addon-i18next\node_modules\@babel\core\lib\index.js
- <root>/storybook-addon-i18next\node_modules\rollup-plugin-babel\dist\rollup-plugin-babel.cjs.js
- <root>/storybook-addon-i18next\rollup.config.js
- <root>/storybook-addon-i18next\node_modules\rollup\dist\bin\rollup
src\preview.js
Error: Cannot find module '@babel/compat-data/corejs3-shipped-proposals'
Require stack:
- <root>/storybook-addon-i18next\node_modules\@babel\preset-env\lib\polyfills\corejs3\usage-plugin.js
- <root>/storybook-addon-i18next\node_modules\@babel\preset-env\lib\index.js
- <root>/storybook-addon-i18next\node_modules\@babel\core\lib\config\files\plugins.js
- <root>/storybook-addon-i18next\node_modules\@babel\core\lib\config\files\index.js
- <root>/storybook-addon-i18next\node_modules\@babel\core\lib\index.js
- <root>/storybook-addon-i18next\node_modules\rollup-plugin-babel\dist\rollup-plugin-babel.cjs.js
- <root>/storybook-addon-i18next\rollup.config.js
- <root>/storybook-addon-i18next\node_modules\rollup\dist\bin\rollup
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:1085:15)
    at Function.Module._load (internal/modules/cjs/loader.js:928:27)
    at Module.require (internal/modules/cjs/loader.js:1145:19)
    at require (internal/modules/cjs/helpers.js:75:18)
    at Object.<anonymous> (<root>/storybook-addon-i18next\node_modules\@babel\preset-env\lib\polyfills\corejs3\usage-plugin.js:10:55)
    at Module._compile (internal/modules/cjs/loader.js:1256:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1277:10)
    at Module.load (internal/modules/cjs/loader.js:1105:32)
    at Function.Module._load (internal/modules/cjs/loader.js:967:14)
    at Module.require (internal/modules/cjs/loader.js:1145:19)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! storybook-addon-i18next@1.3.0 build: `rollup -c rollup.config.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the storybook-addon-i18next@1.3.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

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

Successfully merging this pull request may close these issues.

1 participant