twitchtv / acm-mmsys-2020-grand-challenge

Assets for Twitch's ACM MMSys 2020 Grand Challenge
Apache License 2.0
42 stars 20 forks source link

Version For Node and Grunt #13

Open Samy432 opened 3 years ago

Samy432 commented 3 years ago

Hi,

While setting up the project and when i run grunt dev, i get this error.

sam@mac dash.js % grunt dev
Loading "jscs.js" tasks...ERROR >> ReferenceError: primordials is not defined

Running "browserSync:bsFiles" (browserSync) task [HTML Injector] Running... [Browsersync] Access URLs:

   Local: http://localhost:3000/samples/index.html
External: http://192.168.0.103:3000/samples/index.html

      UI: http://localhost:3001

UI External: http://localhost:3001

[Browsersync] Serving files from: ./ [Browsersync] Watching files...

Running "browserify:watch_dev" (browserify) task

/Users/sam/mmsys/acm-mmsys-2020-grand-challenge-master/dash.js/index.js:31 import { MediaPlayer } from './index_mediaplayerOnly'; ^ ParseError: 'import' and 'export' may appear only with 'sourceType: module' Warning: Error running grunt-browserify. Use --force to continue.

Aborted due to warnings.

Execution Time (2021-09-29 21:04:18 UTC-4) loading tasks 1.5s ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 57% browserSync:bsFiles 552ms ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 21% browserify:watch_dev 584ms ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 22% Total 2.6s

What could be the reason for this error? is it a version mismatch between node and grunt.

I use node version 14.15.1 , grunt version 1.4.1 and grunt-cli version 1.4.3