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

Error on first run #74

Open
ogrotten opened this issue Dec 1, 2022 · 1 comment
Open

Error on first run #74

ogrotten opened this issue Dec 1, 2022 · 1 comment

Comments

@ogrotten
Copy link

ogrotten commented Dec 1, 2022

After fighting with cmake and the compile step, this is now the error message I get:

PS G:\dev\svelte-nodegui-starter> npm run dev

svelte-nodegui-starter@1.0.2 dev

G:\dev\svelte-nodegui-starter\node_modules\webpack\lib\NormalModule.js:179
                        throw new TypeError(
                        ^

TypeError: The 'compilation' argument must be an instance of Compilation
    at NormalModule.getCompilationHooks (G:\dev\svelte-nodegui-starter\node_modules\webpack\lib\NormalModule.js:179:10)
    at G:\dev\svelte-nodegui-starter\node_modules\webpack\lib\HotModuleReplacementPlugin.js:752:18
    at Hook.eval [as call] (eval at create (G:\Dev\svelte-nodegui-starter\node_modules\webpack\node_modules\tapable\lib\HookCodeFactory.js:19:10), <anonymous>:102:1)
    at Hook.CALL_DELEGATE [as _call] (G:\Dev\svelte-nodegui-starter\node_modules\webpack\node_modules\tapable\lib\Hook.js:14:14)
    at G:\Dev\svelte-nodegui-starter\node_modules\webpack\lib\Compiler.js:1035:29
    at Hook.eval [as callAsync] (eval at create (G:\Dev\svelte-nodegui-starter\node_modules\webpack\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:6:1)
    at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (G:\Dev\svelte-nodegui-starter\node_modules\webpack\node_modules\tapable\lib\Hook.js:18:14)
    at Compiler.compile (G:\Dev\svelte-nodegui-starter\node_modules\webpack\lib\Compiler.js:1030:28)
    at G:\Dev\svelte-nodegui-starter\node_modules\webpack\lib\Watching.js:132:19

Node.js v18.12.1
PS G:\dev\svelte-nodegui-starter>

Websearching talks about webpack, but nothing with high enough confidence to try anything with it.

@ogrotten
Copy link
Author

ogrotten commented Dec 1, 2022

From what I've seen this comes from "multiple webpack installs" that bonk when starting.

And then I see this:

PS G:\dev\svelte-nodegui-starter> npm list webpack
svelte-nodegui-starter@1.0.2 G:\dev\svelte-nodegui-starter
+-- file-loader@6.2.0
| `-- webpack@5.75.0
|   `-- terser-webpack-plugin@5.3.6
|     `-- webpack@5.75.0 deduped
+-- ts-loader@8.0.17
| `-- webpack@5.75.0 deduped
`-- webpack-cli@5.0.0
  +-- @webpack-cli/configtest@2.0.0
  | `-- webpack@5.75.0 deduped
  +-- @webpack-cli/info@2.0.0
  | `-- webpack@5.75.0 deduped
  +-- @webpack-cli/serve@2.0.0
  | `-- webpack@5.75.0 deduped
  `-- webpack@5.75.0 deduped

Is this right?

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

1 participant