-
-
Notifications
You must be signed in to change notification settings - Fork 158
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: try fix esm on vue cli with vue2
- Loading branch information
Showing
2 changed files
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
98185ab
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
after this change. my lib stopped work on nuxt.
compiling a cjs package, it'll always require this path 'dist/vue-composition-api.esm.js' .
src/index.js → dist/index.ssr.js...
(!) Unresolved dependencies
https://rollupjs.org/guide/en/#warning-treating-module-as-external-dependency
@vue/composition-api/dist/vue-composition-api.esm.js (imported by ../../node_modules/vue-demi/lib/index.mjs)
created dist/index.ssr.js in 9.1s
Done in 21.75s.
in Nuxt:
ERROR Failed to compile with 1 errors
This dependency was not found:
98185ab
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@leonardotessaroalves try upgrade @vue/composition-api to v1.0.3
98185ab
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
vuejs/apollo#1263