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

[Svelte] Svelte starter project errors on preview. #10410

Open
3 tasks done
kamiifx opened this issue Oct 14, 2023 · 0 comments
Open
3 tasks done

[Svelte] Svelte starter project errors on preview. #10410

kamiifx opened this issue Oct 14, 2023 · 0 comments
Labels
bug-pending-triage Reported bug, pending triage to confirm.

Comments

@kamiifx
Copy link

kamiifx commented Oct 14, 2023

Issue Description

When I do :

ns create example-app --svelte and then ns preview (Connecting to device succesfully)

I get on build :

✖ Building for android
  Compiled with some errors in 47.01ms

error TS5101: Option 'importsNotUsedAsValues' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '"ignoreDeprecations": "5.0"' to silence this error.
  Use 'verbatimModuleSyntax' instead.

ERROR in ./app/App.svelte
Module build failed (from ./node_modules/svelte-loader/index.js):
Error: [svelte-preprocess] Encountered type error
    at throwError (C:\Users\kamii\Documents\Projects\dostn\node_modules\svelte-preprocess\dist\modules\errors.js:5:11)
    at throwTypescriptError (C:\Users\kamii\Documents\Projects\dostn\node_modules\svelte-preprocess\dist\modules\errors.js:9:28)
    at transpileTs (C:\Users\kamii\Documents\Projects\dostn\node_modules\svelte-preprocess\dist\transformers\typescript.js:177:47)
    at mixedImportsTranspiler (C:\Users\kamii\Documents\Projects\dostn\node_modules\svelte-preprocess\dist\transformers\typescript.js:232:60)
    at transformer (C:\Users\kamii\Documents\Projects\dostn\node_modules\svelte-preprocess\dist\transformers\typescript.js:302:11)
    at transform (C:\Users\kamii\Documents\Projects\dostn\node_modules\svelte-preprocess\dist\autoProcess.js:37:12)
    at async C:\Users\kamii\Documents\Projects\dostn\node_modules\svelte-preprocess\dist\autoProcess.js:118:29
    at async script (C:\Users\kamii\Documents\Projects\dostn\node_modules\svelte-preprocess\dist\autoProcess.js:148:33)
    at async process_single_tag (C:\Users\kamii\Documents\Projects\dostn\node_modules\svelte\compiler.js:32587:28)
    at async Promise.all (index 0)
    at async replace_in_code (C:\Users\kamii\Documents\Projects\dostn\node_modules\svelte\compiler.js:32477:27)
    at async process_tag (C:\Users\kamii\Documents\Projects\dostn\node_modules\svelte\compiler.js:32601:30)
    at async preprocess (C:\Users\kamii\Documents\Projects\dostn\node_modules\svelte\compiler.js:32638:31)
 @ ./app/app.ts 9:0-31 10:20-23

webpack compiled with 1 error

Reproduction

I reproduced this by following the example on: https://docs.nativescript.org/tutorials/build-a-master-detail-app-with-svelte

Relevant log output (if applicable)

No response

Environment

No response

Please accept these terms

@kamiifx kamiifx added the bug-pending-triage Reported bug, pending triage to confirm. label Oct 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-pending-triage Reported bug, pending triage to confirm.
Projects
None yet
Development

No branches or pull requests

1 participant