Comments (7)
Sorry about the version number confusion... as I mentioned above I was quite ill for a couple days and am still not fully recovered or up to my normal level of thinking!
I just wanted to try svelte-nodegui out, but couldn't because of the errors mentioned above. I'm not sure I'll be able to spend more time investigating it, although I'd like to. I'll post here if I do.
from svelte-nodegui.
Could you try deleting the package-lock.json and reinstalling the dependencies and seeing whether it improves things?
Basically I can’t explain the issue so I can only conclude that NodeGUI itself (which Svelte NodeGUI depends upon) has changed since I was last working on this.
from svelte-nodegui.
@shirakaba , with all respects to your efforts with this project, I already explained the same problem about rendering in #68 and said that it started with @nodegui/[email protected].
from svelte-nodegui.
On my end, I never saw such problems in versions following 0.0.4, so I don’t have much to go on.
Can you try pinning your @nodegui/nodegui
dependency to be exactly this version and tell me whether it helps?
npm install --save --save-exact @nodegui/[email protected]
from svelte-nodegui.
[Sorry for the slow response; I fell quite ill and basically dropped out of normal life for a couple days.]
Hmm. If I use that version of nodegui (0.30.2) I get the error I'll paste below when I do npm run dev
. It's because of that that I found this page and used version 0.1.2 instead, which did eliminate the error... at the cost, I now assume, of causing the gibberish output. Obvious, 0.1.2 is MUCH earlier, so using it isn't really a viable fix. But why do current versions cause this error on my machine? I'm running node 17.0.1.
ERROR in ./src/app.ts 1:0-56
Module not found: Error: Can't resolve '@nodegui/svelte-nodegui' in '/Users/garyrob/Source/test/svelte/svelte-nodegui-starter/src'
resolve '@nodegui/svelte-nodegui' in '/Users/garyrob/Source/test/svelte/svelte-nodegui-starter/src'
Parsed request is a module
using description file: /Users/garyrob/Source/test/svelte/svelte-nodegui-starter/package.json (relative path: ./src)
resolve as module
/Users/garyrob/Source/test/svelte/svelte-nodegui-starter/src/node_modules doesn't exist or is not a directory
looking for modules in /Users/garyrob/Source/test/svelte/svelte-nodegui-starter/node_modules
single file module
using description file: /Users/garyrob/Source/test/svelte/svelte-nodegui-starter/package.json (relative path: ./node_modules/@nodegui/svelte-nodegui)
no extension
/Users/garyrob/Source/test/svelte/svelte-nodegui-starter/node_modules/@nodegui/svelte-nodegui is not a file
.ts
/Users/garyrob/Source/test/svelte/svelte-nodegui-starter/node_modules/@nodegui/svelte-nodegui.ts doesn't exist
.mjs
/Users/garyrob/Source/test/svelte/svelte-nodegui-starter/node_modules/@nodegui/svelte-nodegui.mjs doesn't exist
.js
/Users/garyrob/Source/test/svelte/svelte-nodegui-starter/node_modules/@nodegui/svelte-nodegui.js doesn't exist
.svelte
/Users/garyrob/Source/test/svelte/svelte-nodegui-starter/node_modules/@nodegui/svelte-nodegui.svelte doesn't exist
.scss
/Users/garyrob/Source/test/svelte/svelte-nodegui-starter/node_modules/@nodegui/svelte-nodegui.scss doesn't exist
.css
/Users/garyrob/Source/test/svelte/svelte-nodegui-starter/node_modules/@nodegui/svelte-nodegui.css doesn't exist
.json
/Users/garyrob/Source/test/svelte/svelte-nodegui-starter/node_modules/@nodegui/svelte-nodegui.json doesn't exist
existing directory /Users/garyrob/Source/test/svelte/svelte-nodegui-starter/node_modules/@nodegui/svelte-nodegui
using description file: /Users/garyrob/Source/test/svelte/svelte-nodegui-starter/node_modules/@nodegui/svelte-nodegui/package.json (relative path: .)
using description file: /Users/garyrob/Source/test/svelte/svelte-nodegui-starter/package.json (relative path: ./node_modules/@nodegui/svelte-nodegui)
no extension
/Users/garyrob/Source/test/svelte/svelte-nodegui-starter/node_modules/@nodegui/svelte-nodegui is not a file
.ts
/Users/garyrob/Source/test/svelte/svelte-nodegui-starter/node_modules/@nodegui/svelte-nodegui.ts doesn't exist
.mjs
/Users/garyrob/Source/test/svelte/svelte-nodegui-starter/node_modules/@nodegui/svelte-nodegui.mjs doesn't exist
.js
/Users/garyrob/Source/test/svelte/svelte-nodegui-starter/node_modules/@nodegui/svelte-nodegui.js doesn't exist
.svelte
/Users/garyrob/Source/test/svelte/svelte-nodegui-starter/node_modules/@nodegui/svelte-nodegui.svelte doesn't exist
.scss
/Users/garyrob/Source/test/svelte/svelte-nodegui-starter/node_modules/@nodegui/svelte-nodegui.scss doesn't exist
.css
/Users/garyrob/Source/test/svelte/svelte-nodegui-starter/node_modules/@nodegui/svelte-nodegui.css doesn't exist
.json
/Users/garyrob/Source/test/svelte/svelte-nodegui-starter/node_modules/@nodegui/svelte-nodegui.json doesn't exist
as directory
existing directory /Users/garyrob/Source/test/svelte/svelte-nodegui-starter/node_modules/@nodegui/svelte-nodegui
using description file: /Users/garyrob/Source/test/svelte/svelte-nodegui-starter/node_modules/@nodegui/svelte-nodegui/package.json (relative path: .)
using path: /Users/garyrob/Source/test/svelte/svelte-nodegui-starter/node_modules/@nodegui/svelte-nodegui/index
using description file: /Users/garyrob/Source/test/svelte/svelte-nodegui-starter/node_modules/@nodegui/svelte-nodegui/package.json (relative path: ./index)
no extension
/Users/garyrob/Source/test/svelte/svelte-nodegui-starter/node_modules/@nodegui/svelte-nodegui/index doesn't exist
.ts
/Users/garyrob/Source/test/svelte/svelte-nodegui-starter/node_modules/@nodegui/svelte-nodegui/index.ts doesn't exist
.mjs
/Users/garyrob/Source/test/svelte/svelte-nodegui-starter/node_modules/@nodegui/svelte-nodegui/index.mjs doesn't exist
.js
/Users/garyrob/Source/test/svelte/svelte-nodegui-starter/node_modules/@nodegui/svelte-nodegui/index.js doesn't exist
.svelte
/Users/garyrob/Source/test/svelte/svelte-nodegui-starter/node_modules/@nodegui/svelte-nodegui/index.svelte doesn't exist
.scss
/Users/garyrob/Source/test/svelte/svelte-nodegui-starter/node_modules/@nodegui/svelte-nodegui/index.scss doesn't exist
.css
/Users/garyrob/Source/test/svelte/svelte-nodegui-starter/node_modules/@nodegui/svelte-nodegui/index.css doesn't exist
.json
/Users/garyrob/Source/test/svelte/svelte-nodegui-starter/node_modules/@nodegui/svelte-nodegui/index.json doesn't exist
/Users/garyrob/Source/test/svelte/node_modules doesn't exist or is not a directory
/Users/garyrob/Source/test/node_modules doesn't exist or is not a directory
/Users/garyrob/Source/node_modules doesn't exist or is not a directory
looking for modules in /Users/garyrob/node_modules
single file module
using description file: /Users/garyrob/package.json (relative path: ./node_modules/@nodegui/svelte-nodegui)
no extension
/Users/garyrob/node_modules/@nodegui/svelte-nodegui doesn't exist
.ts
/Users/garyrob/node_modules/@nodegui/svelte-nodegui.ts doesn't exist
.mjs
/Users/garyrob/node_modules/@nodegui/svelte-nodegui.mjs doesn't exist
.js
/Users/garyrob/node_modules/@nodegui/svelte-nodegui.js doesn't exist
.svelte
/Users/garyrob/node_modules/@nodegui/svelte-nodegui.svelte doesn't exist
.scss
/Users/garyrob/node_modules/@nodegui/svelte-nodegui.scss doesn't exist
.css
/Users/garyrob/node_modules/@nodegui/svelte-nodegui.css doesn't exist
.json
/Users/garyrob/node_modules/@nodegui/svelte-nodegui.json doesn't exist
/Users/garyrob/node_modules/@nodegui/svelte-nodegui doesn't exist
/Users/node_modules doesn't exist or is not a directory
/node_modules doesn't exist or is not a directory
webpack 5.24.2 compiled with 1 error in 2755 ms
ERROR in src/app.ts:1:31
TS2307: Cannot find module '@nodegui/svelte-nodegui' or its corresponding type declarations.
> 1 | import { svelteNodeGUI } from "@nodegui/svelte-nodegui";
| ^^^^^^^^^^^^^^^^^^^^^^^^^
2 |
3 | import App from "./App.svelte";
4 | svelteNodeGUI(App, {});
from svelte-nodegui.
Obvious, 0.1.2 is MUCH earlier, so using it isn't really a viable fix.
0.1.2 is the latest version of @nodegui/svelte-nodegui
. Unless you're talking about @nodegui/nodegui
– but I've never developed against version 0.1.2 of that, so let's not go down that rabbit hole.
Obvious, 0.1.2 is MUCH earlier, so using it isn't really a viable fix.
No idea. Doesn't happen on my side, and I've looked into it in other issue threads without any luck. My working setup:
- Node.js v14.6.0 (this is probably the main factor)
- macOS Big Sur
As the issue doesn't reproduce on my setup, I'm afraid I must rely on other users to get to the bottom of it!
But why do current versions cause this error on my machine?
Current versions of @nodegui/nodegui
? I don't know. I only developed against version 0.30.2
, so if there have been any breaking changes since, it's unexpected, and I simply suggest continuing to use only v0.30.2 of @nodegui/nodegui
.
It could also be that the starter template is not quite right. You could try cloning the main @nodegui/svelte-nodegui
repository and seeing whether the included example app runs any better than the starter template does. If so, you can then try determining what's different between the two.
from svelte-nodegui.
Closed in favour of #72.
from svelte-nodegui.
Related Issues (20)
- Rollup / Vite integration HOT 5
- Issues with Webpack HOT 1
- native module error even if recompiled HOT 2
- how to open a new window? HOT 1
- Svelte NodeGUI starter template fails to complete npm install if path has certain punctuation in it (due to @nodegui/nodegui postinstall step failing)
- chrome://inspect not working as described in hello app
- Error while setting up Qode HOT 1
- Add jonasgrunert to contributors HOT 3
- Widget bindings should be generated - Lots of widgets are missing HOT 4
- Fish shell HOT 22
- Catch up with React NodeGUI (copy across the Table, TableItem, and ErrorPrompt components)
- Module not found: Error: Can't resolve '@nodegui/svelte-nodegui' HOT 4
- Rendering Breaks if User Components Used HOT 9
- webrtc HOT 1
- Layout failing with user components HOT 3
- Broken layout on Linux HOT 6
- Error on first run HOT 1
- License of Qt? HOT 1
- Is dead? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from svelte-nodegui.