electricShine icon indicating copy to clipboard operation
electricShine copied to clipboard

error: unknown option '--display=none'

Open roblen001 opened this issue 3 years ago • 3 comments

Hello,

I am currently trying to run the demo app using electricShine::electrify but I run into the following issue:

Error in eval(parse(text = text, keep.source = FALSE), envir) : 
  object 'platform' not found

To solve this I manually set platform <- "win" and arch <- "x64" using this suggestion.

I then run into a new issue which I have no clue how to solve:

webpack --config=build/webpack.unit.config.js --env=test --display=none

error: unknown option '--display=none'
[webpack-cli] Run 'webpack --help' to see available commands and options
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! [email protected] preunit: `webpack --config=build/webpack.unit.config.js --env=test --display=none`
npm ERR! Exit status 2
npm ERR! 
npm ERR! Failed at the [email protected] preunit script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

Any help would be very much appreciated!

roblen001 avatar Jul 09 '21 17:07 roblen001

Hello,

I am currently trying to run the demo app using electricShine::electrify but I run into the following issue:

Error in eval(parse(text = text, keep.source = FALSE), envir) : 
  object 'platform' not found

To solve this I manually set platform <- "win" and arch <- "x64" using this suggestion.

I then run into a new issue which I have no clue how to solve:

webpack --config=build/webpack.unit.config.js --env=test --display=none

error: unknown option '--display=none'
[webpack-cli] Run 'webpack --help' to see available commands and options
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! [email protected] preunit: `webpack --config=build/webpack.unit.config.js --env=test --display=none`
npm ERR! Exit status 2
npm ERR! 
npm ERR! Failed at the [email protected] preunit script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

Any help would be very much appreciated!

Hello, I also encountered this problem. Have you solved it? Sincerely waiting for your reply

haiyonghe avatar Jul 15 '21 03:07 haiyonghe

I forked the project and went into the R/create_package_json.R and deleted the three occurrences of --display=none

roblen001 avatar Jul 15 '21 15:07 roblen001

I forked the project and went into the R/create_package_json.R and deleted the three occurrences of --display=none

I cant find the filepath of the R/create_package_json.R in my project. Could you please describe more detailed?

ManyaoLi avatar Jan 27 '22 12:01 ManyaoLi