reveal.js icon indicating copy to clipboard operation
reveal.js copied to clipboard

Build fails

Open VladoJ opened this issue 4 years ago • 7 comments

Hi, after cloning repo and npm install when I run npm run build I get circular dependency errors like Circular dependency: node_modules\core-js\modules\es.string.ends-with.js -> node_modules\core-js\modules\es.string.ends-with.js Circular dependency: node_modules\core-js\modules\es.string.starts-with.js -> node_modules\core-js\modules\es.string.starts-with.js Circular dependency: node_modules\core-js\modules\es.string.trim.js -> node_modules\core-js\modules\es.string.trim.js Circular dependency: node_modules\core-js\modules\es.string.trim-end.js -> node_modules\core-js\modules\es.string.trim-end.js and build fails.

What should I do?

VladoJ avatar Nov 02 '20 21:11 VladoJ

#2841

coMnaxtikgi avatar Nov 23 '20 03:11 coMnaxtikgi

I'm on node v12.19.0, and getting this issue (testing with the reveal.js v4.1.0 release), so I'm not sure it's the same issue as that @coMnaxtikgi - any updates here?

  • node: tested and happens on both v12.19.0 and v14.15.2
  • npm: v6.14.9
  • OS: Windows 10, v1909

gavinr avatar Dec 17 '20 17:12 gavinr

This feels like a Windows 10 issue - I do not get the errors when running in the Ubuntu Windows Subsystem for Linux (WSL).

gavinr avatar Dec 17 '20 22:12 gavinr

Still occuring on node-lts v16.13.0, Win10, 20H2 build 19042.1348

freed00m avatar Nov 28 '21 13:11 freed00m

Still having this on Windows 10/11 on several node versions (tested on 16, 15, 14). It seems like this is caused by the plugin task in the build pipeline, more precisely the babel(...) pipe seems to be broken in combination with the RevealNotes plugin.

proohit avatar Dec 29 '21 17:12 proohit

For anyone with the same problem. I got it fixed by changing the Gulpfile https://github.com/hakimel/reveal.js/blob/61055ed02bd7dbff30ea827591084cce7c22303c/gulpfile.js#L137-L141 to

                    babel({
                        ...babelConfig,
+                        exclude: [/core-js/],
                        ignore: [/node_modules\/(?!(highlight\.js|marked)\/).*/],
                    }),
                    terser()

WolfspiritM avatar Jan 19 '22 20:01 WolfspiritM

For anyone with the same problem. I got it fixed by changing the Gulpfile

https://github.com/hakimel/reveal.js/blob/61055ed02bd7dbff30ea827591084cce7c22303c/gulpfile.js#L137-L141

to

                    babel({
                        ...babelConfig,
+                        exclude: [/core-js/],
                        ignore: [/node_modules\/(?!(highlight\.js|marked)\/).*/],
                    }),
                    terser()

Thanks! I was struggling to install reveal.js for an hour. This fix removed the freeze from the installation process.

Lukmanovr avatar Sep 04 '22 16:09 Lukmanovr