question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

@babel/runtime error

See original GitHub issue
  • kcd-scripts version: 1.2.1
  • node version: 10.11.0
  • npm (or yarn) 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:closed
  • Created 4 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
kentcdoddscommented, May 9, 2019

You can make a PR into ignore this warning for tests 👍

0reactions
kentcdoddscommented, May 9, 2019

🎉 This issue has been resolved in version 1.3.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Read more comments on GitHub >

github_iconTop 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
babel /runtime` is a library that contains Babel modular runtime helpers.
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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found