Surfingkeys
Surfingkeys copied to clipboard
compile error
run npm run build:dev shows below
> webpack --mode=development --config ./config/webpack.config.js
{ ignore: [] }
assets by path pages/cmaps/ 1.11 MiB 169 assets
assets by path pages/images/ 67.7 KiB 66 assets
assets by path pages/*.js 3.56 MiB 7 assets
assets by path pages/*.css 174 KiB 7 assets
assets by path pages/*.html 55.3 KiB 7 assets
assets by path icons/*.png 18.5 KiB
asset icons/128.png 10 KiB [emitted] [from: src/icons/128.png] [copied]
+ 4 assets
assets by path pages/*.mjs 2.08 MiB
asset pages/pdf.worker.min.mjs 1.31 MiB [emitted] [from: node_modules/pdfjs-dist/build/pdf.worker.min.mjs] [copied]
+ 2 assets
assets by path *.js 500 KiB
asset content.js 391 KiB [emitted] (name: content)
asset background.js 109 KiB [emitted] (name: background)
+ 5 assets
runtime modules 5.65 KiB 27 modules
cacheable modules 2.43 MiB
modules by path ./src/ 496 KiB
modules by path ./src/content_scripts/ 402 KiB 25 modules
modules by path ./src/background/*.js 90.5 KiB
./src/background/chrome.js 6.91 KiB [built] [code generated]
./src/background/start.js 66.5 KiB [built] [code generated]
./src/background/llm.js 17.1 KiB [built] [code generated]
./src/pages/neovim.js 1.81 KiB [built] [code generated]
./src/common/utils.js 1.16 KiB [built] [code generated]
modules by path ./node_modules/.pnpm/ 1.95 MiB
modules by path ./node_modules/.pnpm/[email protected]/node_modules/ace-builds/src-n...(truncated) 1.27 MiB
./node_modules/.pnpm/[email protected]/node_modules/ace-builds/src-noc...(truncated) 879 KiB [built] [code generated]
+ 4 modules
+ 5 modules
webpack 5.99.8 compiled successfully in 3416 ms
asset pages/neovim_lib.js 1.75 MiB [emitted] [javascript module] (name: pages/neovim_lib)
asset api.js 132 KiB [emitted] [javascript module] (name: api)
asset pages/options.js 20.9 KiB [emitted] [javascript module] (name: pages/options)
runtime modules 2.56 KiB 12 modules
orphan modules 10.5 KiB [orphan] 3 modules
modules by path ./node_modules/.pnpm/ 1.39 MiB 286 modules
modules by path ./src/ 129 KiB
modules by path ./src/nvim/ 51.3 KiB 10 modules
modules by path ./src/content_scripts/ 68.9 KiB
./src/content_scripts/options.js 19.1 KiB [built] [code generated]
./src/content_scripts/common/runtime.js 5.41 KiB [built] [code generated]
./src/content_scripts/common/utils.js 35.6 KiB [built] [code generated]
./src/content_scripts/common/keyboardUtils.js 8.74 KiB [built] [code generated]
./src/user_scripts/index.js 8.83 KiB [built] [code generated]
./util.inspect (ignored) 15 bytes [built] [code generated]
ERROR in ./src/nvim/Nvim.ts 1:0-38
Module not found: Error: Can't resolve 'events' in 'repodirectory/src/nvim'
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
- add a fallback 'resolve.fallback: { "events": require.resolve("events/") }'
- install 'events'
If you don't want to include a polyfill, you can use an empty module like this:
resolve.fallback: { "events": false }
@ ./src/nvim/renderer.ts 1:0-26 22:25-29
ERROR in ./src/nvim/transport/websocket.ts 1:0-38
Module not found: Error: Can't resolve 'events' in 'repodirectory/src/nvim/transport'
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
- add a fallback 'resolve.fallback: { "events": require.resolve("events/") }'
- install 'events'
If you don't want to include a polyfill, you can use an empty module like this:
resolve.fallback: { "events": false }
@ ./src/nvim/Nvim.ts 3:0-55 35:30-48
@ ./src/nvim/renderer.ts 1:0-26 22:25-29
ERROR in repodirectory/tsconfig.json
repodirectory/tsconfig.json
[tsl] ERROR
TS2688: Cannot find type definition file for 'node'.
The file is in the program because:
Entry point of type library 'node' specified in compilerOptions
ERROR in repodirectory/src/nvim/screen.ts
./src/nvim/screen.ts 66:35-41
[tsl] ERROR in repodirectory/src/nvim/screen.ts(66,36)
TS2503: Cannot find namespace 'NodeJS'.
@ ./src/nvim/renderer.ts 2:0-34 25:23-33
ERROR in repodirectory/src/nvim/screen.ts
./src/nvim/screen.ts 67:36-42
[tsl] ERROR in repodirectory/src/nvim/screen.ts(67,37)
TS2503: Cannot find namespace 'NodeJS'.
@ ./src/nvim/renderer.ts 2:0-34 25:23-33
ERROR in repodirectory/src/nvim/screen.ts
./src/nvim/screen.ts 68:36-42
[tsl] ERROR in repodirectory/src/nvim/screen.ts(68,37)
TS2503: Cannot find namespace 'NodeJS'.
@ ./src/nvim/renderer.ts 2:0-34 25:23-33
ERROR in repodirectory/src/nvim/screen.ts
./src/nvim/screen.ts 69:37-43
[tsl] ERROR in repodirectory/src/nvim/screen.ts(69,38)
TS2503: Cannot find namespace 'NodeJS'.
@ ./src/nvim/renderer.ts 2:0-34 25:23-33
7 errors have detailed information that is not shown.
Use 'stats.errorDetails: true' resp. '--stats-error-details' to show it.
webpack 5.99.8 compiled with 7 errors in 6419 ms
ELIFECYCLE Command failed with exit code 1.