@babel/runtime error
See original GitHub issuekcd-scripts
version: 1.2.1node
version: 10.11.0npm
(oryarn
) version: npm 6.9.0
Relevant code or config
"scripts": {
"test": "kcd-scripts test --config=jest.config.js"
},
What you did:
npm run test
What happened:
Error: You should add @babel/runtime as dependency to your package. It will allow reusing "babel helpers" from node_modules rather than bundling their copies into your files.
at Object.<anonymous> (/Users/bmonro001/Code/react-svelte/node_modules/kcd-scripts/dist/config/babelrc.js:33:9)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:20:18)
at Object.<anonymous> (/Users/bmonro001/Code/react-svelte/node_modules/kcd-scripts/dist/config/index.js:4:10)
at Module._compile (internal/modules/cjs/loader.js:689:30)
Reproduction repository: https://github.com/benmonro/react-svelte/tree/bug/kcd-script-error
Problem description: why do i need to install @babel/runtime as a (non dev) dependency just to run tests? Suggested solution: have kcd-scripts not require that dep.
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Module not found: Can't resolve @babel/runtime/helpers
To solve the error "Module not found: Error: Can't resolve '@babel/runtime/helpers'", make sure to install the @babel/runtime package by opening your terminal ...
Read more >How to fix - Module not found: Can't resolve '@babel/runtime ...
I am working on a project of react and I am getting the following error after implement this package https://www ...
Read more >Error: Can't resolve '@babel/runtime/helpers/createSuper ...
I would like to work on a fix! Current Behavior After re-installing my Macbook, the error Module not found: Error: Can't resolve '@babel/runtime...
Read more >@babel/runtime - npm
babel's modular runtime helpers. Latest version: 7.20.7, last published: 6 days ago. Start using @babel/runtime in your project by running ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
You can make a PR into ignore this warning for tests 👍
🎉 This issue has been resolved in version 1.3.0 🎉
The release is available on:
npm package (@latest dist-tag)
Your semantic-release bot 📦🚀