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

Cannot find module '@nodegui/svelte-nodegui' or its corresponding type declarations. #6

Closed
mbykov opened this issue Aug 9, 2021 · 6 comments

Comments

@mbykov
Copy link

mbykov commented Aug 9, 2021

From the very scratch:
npx degit ....
npm run dev

svelte-nodegui-starter@1.0.2 dev
webpack --mode=development

assets by status 58.1 KiB [cached] 1 asset
asset nodegui_core-71e80e7a0d4c8202eac6ca8d0e0c6d25.node 7.41 MiB [compared for emit] (auxiliary name: main)
asset index.js 1.39 MiB [compared for emit] (name: main) 1 related asset
runtime modules 21.9 KiB 10 modules
modules by path ./node_modules/@nodegui/nodegui/ 510 KiB 212 modules
modules by path ./node_modules/postcss/lib/.js 479 KiB 25 modules
modules by path ./node_modules/source-map/ 99.4 KiB 11 modules
modules by path ./src/ 10.8 KiB
modules by path ./src/components/ 6.85 KiB 3 modules
2 modules
modules by path ./node_modules/cuid/ 2.88 KiB 4 modules
modules by path ./node_modules/webpack/hot/
.js 3.75 KiB 3 modules
modules by path ./node_modules/chalk/ 12.1 KiB 3 modules
modules by path ./node_modules/color-convert/*.js 20.3 KiB 3 modules
modules by path ./node_modules/svelte/ 54.1 KiB
./node_modules/svelte/internal/index.mjs 53.9 KiB [built] [code generated]
./node_modules/svelte/index.mjs 212 bytes [built] [code generated]
18 modules

ERROR in ./src/app.ts 1:0-56
Module not found: Error: Can't resolve '@nodegui/svelte-nodegui' in '/home/michael/d-nodegui/sns/src'

...

etc

what does this mean?

what should be done?

@IDmedia
Copy link

IDmedia commented Aug 25, 2021

Try to run:
npm i @nodegui/svelte-nodegui

@mbykov
Copy link
Author

mbykov commented Aug 26, 2021

Yes, thank you. Now it works, but Gui is messed up.

I hope this project is alive and we will see new versions

@IDmedia
Copy link

IDmedia commented Aug 26, 2021

Yeah, I just found this project myself and had the same issue as you.
GUI broken here too so I think I'll find another framework for now.

@clozach
Copy link

clozach commented Sep 9, 2021

For the record, here's how it's rendering for me in macOS 11.5.1 (Big Sur).

image

@milahu
Copy link

milahu commented Sep 17, 2021

package-lock.json is old

    "@nodegui/svelte-nodegui": {
      "version": "0.1.1",

should be 0.1.2

@shirakaba
Copy link
Collaborator

This issue is a duplicate of nodegui/svelte-nodegui#67.

As for the layout issue, moving discussion to nodegui/svelte-nodegui#72.

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

5 participants