Content-Length: 261396 | pFad | http://github.com/NativeScript/NativeScript/issues/10660

70 npm error ERESOLVE with svelte-native default template · Issue #10660 · NativeScript/NativeScript · GitHub
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

npm error ERESOLVE with svelte-native default template #10660

Open
3 tasks done
dmoebius opened this issue Dec 18, 2024 · 3 comments · Fixed by halfnelson/svelte-native-preprocessor#20
Open
3 tasks done

Comments

@dmoebius
Copy link

Issue Description

When I create a new native-script project from the default svelte template, the generated package.json has resolve conflicts.

Reproduction

Create a new project from the svelte template:

$ npx nativescript create svelte-native-app --svelte

Then run npm install in the created project:

$ cd svelte-native-app
$ npm install
npm error code ERESOLVE
npm error ERESOLVE could not resolve
npm error
npm error While resolving: svelte-native-preprocessor@1.0.0
npm error Found: svelte@4.2.19
npm error node_modules/svelte
npm error   dev svelte@"~4.2.2" from the root project
npm error   peer svelte@">=3.19.0" from svelte-hmr@0.14.12
npm error   node_modules/svelte-hmr
npm error     svelte-hmr@"^0.14.2" from svelte-loader@3.2.4
npm error     node_modules/svelte-loader
npm error       dev svelte-loader@"^3.1.9" from the root project
npm error   3 more (svelte-loader, svelte-native, svelte-preprocess)
npm error
npm error Could not resolve dependency:
npm error peer svelte@"^3.37.0" from svelte-native-preprocessor@1.0.0
npm error node_modules/svelte-native-preprocessor
npm error   dev svelte-native-preprocessor@"^1.0.0" from the root project
npm error
npm error Conflicting peer dependency: svelte@3.59.2
npm error node_modules/svelte
npm error   peer svelte@"^3.37.0" from svelte-native-preprocessor@1.0.0
npm error   node_modules/svelte-native-preprocessor
npm error     dev svelte-native-preprocessor@"^1.0.0" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.

Relevant log output (if applicable)

No response

Environment

OS: Linux 6.12 Garuda Linux
CPU: (22) x64 Intel(R) Core(TM) Ultra 9 185H
Shell: /bin/bash
node: 22.12.0
npm: 10.9.0
nativescript: Not Found

# android
java: 21.0.3
ndk: Not Found
apis: Not Found
build_tools: Not Found
system_images: Not Found

# ios
xcode: Not Found
cocoapods: Not Found
python: 3.12.7
python3: 3.12.7
ruby: Not Found
platforms: Not Found

Dependencies

"dependencies": {
"@nativescript/core": "~8.8.0",
"@nativescript/theme": "^3.1.0",
"svelte-native": "~1.0.9"
},
"devDependencies": {
"@nativescript/types": "~8.8.0",
"@nativescript/webpack": "~5.0.0",
"svelte": "~4.2.2",
"svelte-loader": "^3.1.9",
"svelte-native-preprocessor": "^1.0.0",
"svelte-preprocess": "^5.0.4",
"typescript": "~5.4.0"
}

Please accept these terms

@dmoebius dmoebius added the bug-pending-triage Reported bug, pending triage to confirm. label Dec 18, 2024
@TheBeachMaster
Copy link

See halfnelson/svelte-native#353

I don't think Svelte-native is actively maintained anymore...

@NathanWalker
Copy link
Contributor

@dmoebius @TheBeachMaster we'll check with @halfnelson on the --svelte template.
You can just ns debug ios or ns debug android and runs well. You could also use npm i --legacy-peer-deps
Screenshot 2025-01-08 at 9 17 26 AM

Screenshot 2025-01-08 at 9 16 53 AM Screenshot 2025-01-08 at 9 17 42 AM

@NathanWalker
Copy link
Contributor

NathanWalker commented Jan 8, 2025

This fixes the npm peer though: halfnelson/svelte-native-preprocessor#20

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/NativeScript/NativeScript/issues/10660

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy