LoginSignup
2
0

More than 3 years have passed since last update.

Nuxt.jsでReferenceError: regeneratorRuntime is not defined

Last updated at Posted at 2019-09-16

Nuxt.jsで開発中にJimpを追加したらエラーが出た

ReferenceError: regeneratorRuntime is not defined

対応

依存を追加

npm install --save @babel/plugin-transform-runtime

nuxt.config.jsに以下を追加

nuxt.config.js
babel: {
  presets: [
    'es2015',
    'stage-0',
  ],
  plugins: [
    'transform-runtime'
  ]
},

自分はこっちも追加してしまったんですが多分いらないんじゃないかと思ってます

npm install --save @babel/runtime

多謝

ReferenceError: regeneratorRuntime is not defined

2
0
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0