run ios fails with updated template
simmoe opened this issue · 5 comments
simmoe commented
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
PlaidPhantom commented
I am getting this same error on the android platform.
halfnelson commented
The error looks like it isn't running the new webpack config. Have you
upgraded nativescript to 6.4 `npm install -g nativescript@latest`
…On Thu, 5 Mar 2020, 4:57 am Sam Shores, ***@***.***> wrote:
I am getting this same error on the android platform.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#11?email_source=notifications&email_token=AAEGS5GHJ7OG2ZFSYIU56FTRF2QCDA5CNFSM4LAJKUOKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENZTFTI#issuecomment-594752205>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAEGS5CJSHZ6VYM4EOXCEBLRF2QCDANCNFSM4LAJKUOA>
.
simmoe commented
ah, nope. sorry. dunno why i didn't consider that - ran over the quickstart but didn't think of possible nativescript updates.
halfnelson commented
No worries, I only knew about the upgrade because I had the exact same
error while making the template :) maybe I should update the readme with a
tip
…On Thu, 5 Mar 2020, 10:07 pm Simon, ***@***.***> wrote:
Closed #11
<#11>.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#11?email_source=notifications&email_token=AAEGS5AKNYN5XECHUZ7V22LRF6IXXA5CNFSM4LAJKUOKYY3PNVWWK3TUL52HS4DFWZEXG43VMVCXMZLOORHG65DJMZUWGYLUNFXW5KTDN5WW2ZLOORPWSZGOXDKEAWI#event-3100917849>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAEGS5CDXCCBAXLXFY6BMJTRF6IXXANCNFSM4LAJKUOA>
.
simmoe commented
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!