moritanian / texlive-web

texlivejs vue application
GNU General Public License v2.0
1 stars 1 forks source link

Have problem with node11 about new Buffer() #1

Open seuliang opened 5 years ago

seuliang commented 5 years ago

I follow the website blow and change new buffer() to Buffer.from() but can't run this project. https://nodejs.org/en/docs/guides/buffer-constructor-deprecation/

The error is Parser “babylon” deprecated error. I follow the solution from https://stackoverflow.com/questions/54306758/parser-babylon-deprecated-error-webpack-build?answertab=votes#tab-top

Then the problem is warning

95% emitting WARNING  Compiled with 1 warnings                          
[1] 
[1]  warning  in ./node_modules/BrowserFS/dist/browserfs.js
[1] 
[1] There are multiple modules with names that only differ in casing.
[1] This can lead to unexpected behavior when compiling on a filesystem with other case-semantic.
[1] Use equal casing. Compare these module identifiers:
[1] * /Users/xxx/xxxx/githubexample/texlive-web/node_modules/BrowserFS/dist/browserfs.js
[1]     Used by 1 module(s), i. e.
[1]     /Users/xxx/xxxx/githubexample/texlive-web/node_modules/babel-loader/lib/index.js!/Users/xxx/xxxx/githubexample/texlive-web/node_modules/eslint-loader/index.js??ref--0!/Users/xxx/xxxx/githubexample/texlive-web/src/store/modules/file_system.js
[1] * /Users/xxx/xxxx/githubexample/texlive-web/node_modules/browserfs/dist/browserfs.js
[1]     Used by 3 module(s), i. e.
[1]     /Users/xxx/xxxx/githubexample/texlive-web/node_modules/browserfs/dist/shims/bufferGlobal.js

The result is latex can't be compiled. How can i fix this?

moritanian commented 5 years ago

I am sorry to respond to your issue.

I think the cause of the compilation failure is not buffer. Please check if texlive.js is pulled as submodule.

Today, I pushed some commits in the master branch which shift submodule to node_modules and fix new buffer. You can check it. (need yarn install)

seuliang commented 5 years ago

Thanks, I will try it