Skip to content
This repository was archived by the owner on Mar 18, 2025. It is now read-only.
This repository was archived by the owner on Mar 18, 2025. It is now read-only.

Error on first run #74

Description

@ogrotten

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.

Activity

  1. ogrotten commented on Dec 1, 2022

    @ogrotten
    Author

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions