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

Fatal Cannot find module 'babel-runtime/regenerator' #7

Open
tanc opened this issue Apr 22, 2021 · 3 comments
Open

Fatal Cannot find module 'babel-runtime/regenerator' #7

tanc opened this issue Apr 22, 2021 · 3 comments

Comments

@tanc
Copy link

tanc commented Apr 22, 2021

I'm just testing out this plugin but immediately hit the following fatal error:

 FATAL  Cannot find module 'babel-runtime/regenerator'                            
Require stack:
- /xxx/xxx/xxx/xxx/frontend/node_modules/nuxt-remote-asset-cache/dist/sync-assets.js 

  Require stack:
  - node_modules/nuxt-remote-asset-cache/dist/sync-assets.js
  at Function.Module._resolveFilename (internal/modules/cjs/loader.js:831:15)
  at Function.resolve (internal/modules/cjs/helpers.js:80:19)
  at m (node_modules/jiti/dist/jiti.js:1:52899)
  at f (node_modules/jiti/dist/jiti.js:1:53712)
  at node_modules/nuxt-remote-asset-cache/dist/sync-assets.js:7:20
  at f (node_modules/jiti/dist/jiti.js:1:54601)
  at node_modules/nuxt-remote-asset-cache/nuxt/module.js:3:42
  at Resolver.f [as _require] (node_modules/jiti/dist/jiti.js:1:54601)
  at Resolver.requireModule (node_modules/@nuxt/core/dist/core.js:381:29)
  at ModuleContainer.addModule (node_modules/@nuxt/core/dist/core.js:182:38)

Nuxt version 2.15.3

Removing this plugin allows yarn dev to work again.

@tanc
Copy link
Author

tanc commented Apr 22, 2021

Adding babel-plugin-transform-runtime as a dev dependency allowed it to run properly

@weotch
Copy link
Member

weotch commented Apr 22, 2021

Huh, I'll add that to the repo, thanks!

@weotch
Copy link
Member

weotch commented Apr 22, 2021

Oh, it already is added ... https://github.com/BKWLD/nuxt-remote-asset-cache/blob/master/package.json#L16 ... maybe I need to edit babel config so this ships with that already baked in...

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

No branches or pull requests

2 participants