Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Module webpack-stream fail to install result in build failure #80

Open
domeniczz opened this issue Jan 30, 2024 · 2 comments
Open

Module webpack-stream fail to install result in build failure #80

domeniczz opened this issue Jan 30, 2024 · 2 comments

Comments

@domeniczz
Copy link

  • Surfingkeys Version: 1.16.1
  • Surfingkeys-conf Version (git hash): c5052d6
  • Operating System: Windows 11

Details

already runned npm install:

PS C:\Repository\surfingkeys-conf> npm install
npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.

up to date, audited 735 packages in 2s

90 packages are looking for funding
  run `npm fund` for details

12 vulnerabilities (2 moderate, 8 high, 2 critical)

To address issues that do not require attention, run:
  npm audit fix

To address all issues (including breaking changes), run:
  npm audit fix --force

Run `npm audit` for details.

npm run gulp build fail. module not found:

PS C:\Repository\surfingkeys-conf> npm run gulp build
npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.

> [email protected] gulp
> npm exec gulp -- "build"

npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
[21:35:52] Using gulpfile C:\Repository\surfingkeys-conf\gulpfile.js
[21:35:52] Starting 'build'...
Browserslist: caniuse-lite is outdated. Please run:
  npx update-browserslist-db@latest
  Why you should do it regularly: https://github.com/browserslist/update-db#readme
[21:35:53] gulp-notify: [Build failure [surfingkeys-conf]] Module not found: Error: Can't resolve './conf.priv.js' in 'C:\Repository\surfingkeys-conf\src'
[21:35:53] 'build' errored after 1.67 s
[21:35:53] Error in plugin "webpack-stream"
Message:
    Module not found: Error: Can't resolve './conf.priv.js' in 'C:\Repository\surfingkeys-conf\src'
Module not found: Error: Can't resolve './conf.priv.js' in 'C:\Repository\surfingkeys-conf\src'
Module not found: Error: Can't resolve './conf.priv.js' in 'C:\Repository\surfingkeys-conf\src'

try to install the module:

PS C:\Repository\surfingkeys-conf> npm install webpack-stream 7.0.0
npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
npm ERR! code ENOVERSIONS
npm ERR! No versions available for 7.0.0

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\zhang\AppData\Local\npm-cache\_logs\2024-01-30T13_38_13_703Z-debug-0.log

Don't know how to solve

@domeniczz
Copy link
Author

Just curious. Why not simply provide a built version for much easier usage?

@Irubataru
Copy link

Had the same issue, and defining the private keys doesn't seem to be optional.

$ cp ./src/conf.priv.example.js ./src/conf.priv.js

So you need to copy the example config, and change it if needed. I think this is why there isn't a built version, but you could always just exclude the engines without an API key.

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

No branches or pull requests

2 participants