Skip to content
This repository has been archived by the owner on Oct 3, 2023. It is now read-only.

Version For Node and Grunt #13

Open
Samy432 opened this issue Sep 30, 2021 · 0 comments
Open

Version For Node and Grunt #13

Samy432 opened this issue Sep 30, 2021 · 0 comments

Comments

@Samy432
Copy link

Samy432 commented Sep 30, 2021

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant