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

error: unknown option '--display=none' #430

Open
roblen001 opened this issue Jul 9, 2021 · 3 comments
Open

error: unknown option '--display=none' #430

roblen001 opened this issue Jul 9, 2021 · 3 comments

Comments

@roblen001
Copy link

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! My_App@1.0.0 preunit: `webpack --config=build/webpack.unit.config.js --env=test --display=none`
npm ERR! Exit status 2
npm ERR! 
npm ERR! Failed at the My_App@1.0.0 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!

@haiyonghe
Copy link

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! My_App@1.0.0 preunit: `webpack --config=build/webpack.unit.config.js --env=test --display=none`
npm ERR! Exit status 2
npm ERR! 
npm ERR! Failed at the My_App@1.0.0 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

@roblen001
Copy link
Author

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

@ManyaoLi
Copy link

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?

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

3 participants