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

[email protected] 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
[email protected] G:\dev\svelte-nodegui-starter
+-- [email protected]
| `-- [email protected]
|   `-- [email protected]
|     `-- [email protected] deduped
+-- [email protected]
| `-- [email protected] deduped
`-- [email protected]
  +-- @webpack-cli/[email protected]
  | `-- [email protected] deduped
  +-- @webpack-cli/[email protected]
  | `-- [email protected] deduped
  +-- @webpack-cli/[email protected]
  | `-- [email protected] deduped
  `-- [email protected] 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