halfnelson/svelte-native-template

run ios fails with updated template

simmoe opened this issue · 5 comments

This might be my limited knowledge. But the newly updated (blank) template fails when i run the following commands.

npx degit halfnelson/svelte-native-template myapp
npm i
npm run ios

If I use any earlier template everything works fine.
Here's the error output:

$ tns run ios
Searching for devices...
Preparing project...
File change detected. Starting incremental webpack compilation...
Starting type checking service...
Using 1 worker with 4096MB memory limit

webpack is watching the files…

Hash: 1c6e8d93e276cba1f793
Version: webpack 4.27.1
Time: 1510ms
Built at: 03.03.2020 13:16:00
 4 assets
Entrypoint bundle = runtime.js vendor.js bundle.js
Entrypoint tns_modules/tns-core-modules/inspector_modules = runtime.js vendor.js tns_modules/tns-core-modules/inspector_modules.js
[./ sync ^\.\/app\.(css|scss|less|sass)$] . sync nonrecursive ^\.\/app\.(css|scss|less|sass)$ 174 bytes {bundle} [built]
[./ sync recursive (?<!\bApp_Resources\b.*)(?<!\.\/\btests\b\/.*?)\.(xml|css|js|kt|(?<!\.d\.)ts|(?<!\b_[\w-]*\.)scss)$] . sync (?<!\bApp_Resources\b.*)(?<!\.\/\btests\b\/.*?)\.(xml|css|js|kt|(?<!\.d\.)ts|(?<!\b_[\w-]*\.)scss)$ 210 bytes {bundle} [built]
[./App.svelte] 204 bytes {bundle} [built] [failed] [1 error]
[./app.css] 1.28 KiB {bundle} [optional] [built]
[./app.ts] 1.85 KiB {bundle} [built]
[./font-awesome.css] 1.04 KiB {bundle} [built]
[./package.json] 99 bytes {bundle} {tns_modules/tns-core-modules/inspector_modules} [optional] [built]
    + 332 hidden modules

ERROR in ./App.svelte 1:0
Module parse failed: Unexpected token (1:0)
You may need an appropriate loader to handle this file type.
> <page>
|     <actionBar title="Svelte Native App" />
|     <gridLayout>
 @ ./app.ts 40:0-31 41:13-16

I am getting this same error on the android platform.

ah, nope. sorry. dunno why i didn't consider that - ran over the quickstart but didn't think of possible nativescript updates.

tnx for the reply and for all this excellent work. I just gotta tell you I'm a bachelor-level teacher, and we are having so much fun with Svelte and -native. Web development finally regaining some sense!