0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

nuxt-composition-apiを導入したら、fs in ./node_modules/fs-extra/lib/index.jsなエラーが出る

Posted at

nuxt-property-decoratorからnuxt-composition-apiに移行する際
下記のようなエラーが出ました。

 ERROR  Failed to compile with 3 errors                                    friendly-errors 13:54:01

This dependency was not found:                                             friendly-errors 13:54:01
                                                                           friendly-errors 13:54:01
* fs in ./node_modules/fs-extra/lib/index.js, ./node_modules/graceful-fs/graceful-fs.js and 1 other
*

え、node・・?とイミフと思いますが、公式githubのissueに書いてありました。

buildModules: [
    ~~,
    ~~,
    'nuxt-composition-api',
  ],

buildModuleにnuxt-composition-apiを追加する必要があります。

というか、githubみなくてもgetting-startedに書いてたんですよねぇ・・。
まず公式見よう、ホント。

0
0
0

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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?