You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have written a node plugins, and I have the following error:
Error: 'existsSync' is not exported by node_modules/rollup-plugin-node-builtins/src/es6/empty.js
src/index.js → dist/@scope/docx2latex.min.js...
(!) Circular dependency: node_modules/rollup-plugin-node-builtins/src/es6/readable-stream/duplex.js -> node_modules/rollup-plugin-node-builtins/src/es6/readable-stream/readable.js -> node_modules/rollup-plugin-node-builtins/src/es6/readable-stream/duplex.js
(!) Circular dependency: node_modules/rollup-plugin-node-builtins/src/es6/readable-stream/duplex.js -> node_modules/rollup-plugin-node-builtins/src/es6/readable-stream/writable.js -> node_modules/rollup-plugin-node-builtins/src/es6/readable-stream/duplex.js
[!] Error: 'existsSync' is not exported by node_modules/rollup-plugin-node-builtins/src/es6/empty.js
https://rollupjs.org/guide/en/#error-name-is-not-exported-by-module
src/docx2latex/convert-docx2latex.js (2:9)
1: import execa from 'execa';
2: import { existsSync } from 'fs';
^
3: import { join } from 'path';
4: import logger from 'debug';
Error: 'existsSync' is not exported by node_modules/rollup-plugin-node-builtins/src/es6/empty.js
at error (/home/dka/workspace/git.myprivate.com/myorg/docx2latex/node_modules/rollup/dist/rollup.js:10149:30)
at Module.error (/home/dka/workspace/git.myprivate.com/myorg/docx2latex/node_modules/rollup/dist/rollup.js:14132:9)
at handleMissingExport (/home/dka/workspace/git.myprivate.com/myorg/docx2latex/node_modules/rollup/dist/rollup.js:14051:21)
at Module.traceVariable (/home/dka/workspace/git.myprivate.com/myorg/docx2latex/node_modules/rollup/dist/rollup.js:14443:17)
at ModuleScope.findVariable (/home/dka/workspace/git.myprivate.com/myorg/docx2latex/node_modules/rollup/dist/rollup.js:13141:39)
at FunctionScope.findVariable (/home/dka/workspace/git.myprivate.com/myorg/docx2latex/node_modules/rollup/dist/rollup.js:2981:38)
at ChildScope.findVariable (/home/dka/workspace/git.myprivate.com/myorg/docx2latex/node_modules/rollup/dist/rollup.js:2981:38)
at FunctionScope.findVariable (/home/dka/workspace/git.myprivate.com/myorg/docx2latex/node_modules/rollup/dist/rollup.js:2981:38)
at ChildScope.findVariable (/home/dka/workspace/git.myprivate.com/myorg/docx2latex/node_modules/rollup/dist/rollup.js:2981:38)
at FunctionScope.findVariable (/home/dka/workspace/git.myprivate.com/myorg/docx2latex/node_modules/rollup/dist/rollup.js:2981:38)
I have written a node plugins, and I have the following error:
This is related versions in my
package.json
:I decided to use
rollup-plugin-node-globals
and now the error is gone,So I wonder, can I use by default
rollup-plugin-node-globals
even in web project or it will increase the size of the distributed module?The text was updated successfully, but these errors were encountered: