nextTick is not available when building with Rollup
See original GitHub issueRollup build fails due to nextTick missing.
➜ masonry git:(master) ✗ npm run build
> masonry@0.0.0 build
> vue-tsc --noEmit && vite build
vite v2.2.4 building for production...
✓ 91 modules transformed.
'nextTick' is not exported by node_modules/vue-masonry/node_modules/vue/dist/vue.runtime.esm.js, imported by node_modules/vue-masonry/src/masonry-vue3.plugin.js
file: /Users/toni/Documents/Omat/masonry/node_modules/vue-masonry/src/masonry-vue3.plugin.js:5:9
3:
4: // Vue 3 Global API changed: nextTick import
5: import { nextTick } from 'vue';
^
6:
7: const attributesMap = {
error during build:
Error: 'nextTick' is not exported by node_modules/vue-masonry/node_modules/vue/dist/vue.runtime.esm.js, imported by node_modules/vue-masonry/src/masonry-vue3.plugin.js
at error (/Users/toni/Documents/Omat/masonry/node_modules/rollup/dist/shared/rollup.js:5309:30)
at Module.error (/Users/toni/Documents/Omat/masonry/node_modules/rollup/dist/shared/rollup.js:9765:16)
at Module.traceVariable (/Users/toni/Documents/Omat/masonry/node_modules/rollup/dist/shared/rollup.js:10151:29)
at ModuleScope.findVariable (/Users/toni/Documents/Omat/masonry/node_modules/rollup/dist/shared/rollup.js:8905:39)
at ChildScope.findVariable (/Users/toni/Documents/Omat/masonry/node_modules/rollup/dist/shared/rollup.js:2636:38)
at ClassBodyScope.findVariable (/Users/toni/Documents/Omat/masonry/node_modules/rollup/dist/shared/rollup.js:2636:38)
at FunctionScope.findVariable (/Users/toni/Documents/Omat/masonry/node_modules/rollup/dist/shared/rollup.js:2636:38)
at ChildScope.findVariable (/Users/toni/Documents/Omat/masonry/node_modules/rollup/dist/shared/rollup.js:2636:38)
at FunctionScope.findVariable (/Users/toni/Documents/Omat/masonry/node_modules/rollup/dist/shared/rollup.js:2636:38)
at ChildScope.findVariable (/Users/toni/Documents/Omat/masonry/node_modules/rollup/dist/shared/rollup.js:2636:38)
├── @vitejs/plugin-vue@1.2.2
├── @vue/compiler-sfc@3.0.11
├── autoprefixer@10.2.5
├── axios@0.21.1
├── mitt@2.1.0
├── postcss@8.2.14
├── typescript@4.2.4
├── vite@2.2.4
├── vue-class-component@8.0.0-rc.1
├── vue-masonry@0.13.0
├── vue-router@4.0.6
├── vue-tsc@0.1.2
├── vue@3.0.11
└── vuex@4.0.0
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:11 (2 by maintainers)
Top Results From Across the Web
Polyfill node os module with vite/rollup.js - Stack Overflow
Tracing this error it comes from constructing the useragent string. I tried installing rollup-plugin-polyfill-node and adding it to vite.config.js but still ...
Read more >Global API: General - Vue.js
nextTick () # ... A utility for waiting for the next DOM update flush. ... When you mutate reactive state in Vue, the...
Read more >Webpack 5 Issues | Documentation - Web3Auth
If you are using vite/svelte/rollup you may run into issues building. This is because NodeJS polyfills are not included. Solution. Install the missing...
Read more >@rollup/plugin-commonjs - npm
This can throw at build time if there is no default export. This is how external dependencies are handled when esmExternals is not...
Read more >Creating a Vue module with Rollup and Typescript
I found in rollup a great tool for creating npm modules. Is particulary easy to understend, no need so much configuration but it's...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
i’ve created a
0.14.0-beta.0
version to test v2/v3 works smoothly please try to install and have a looksrc/masonry-vue3.plugin.js
is still there for compatibility, will be removed in final version0.14.0
#118
released
0.14.0
- https://github.com/shershen08/vue-masonry/releases/tag/0.14.0https://www.npmjs.com/package/vue-masonry/v/0.14.0