playground-feedback icon indicating copy to clipboard operation
playground-feedback copied to clipboard

(Svelte native) 1.default is not a function: undefined

Open beebase opened this issue 5 years ago • 17 comments

There seems to be a problem with the Svelte native version in the playground. It's very easy to reproduce.

  1. select Svelte native in the playground
  2. add a space or comment to the code and save.

Only one error message occurs when doing a save

1.default is not a function:
undefined

Maybe related to this css file? @import '~@nativescript/theme/css/default.css';

beebase avatar Dec 02 '20 10:12 beebase

I tried to use playground at one month ago and nothing is working, when I try to preview console return this error. Today continues not working.

chameleonbr avatar Dec 11 '20 20:12 chameleonbr

Yes still not working.

umitgri avatar Dec 21 '20 00:12 umitgri

Svelte native REPL works well.

mwstr avatar Dec 25 '20 15:12 mwstr

I get the same error in the playground even without changing anything. Does not work at all for me with the Svelte template :/

geonom avatar Jan 20 '21 13:01 geonom

Yes still the same. Unbelievable!

umitgri avatar Feb 21 '21 22:02 umitgri

@umitgri I understand you're annoyed. So am I. I would have expected at least a reaction by now. But let's not forget this is open source. People are doing this in their spare time, so let's try to stay kind and patient. 👍 ☮️

beebase avatar Feb 22 '21 10:02 beebase

@beebase you may be right. 2 and half months. Lets wait few more months :)

umitgri avatar Feb 22 '21 11:02 umitgri

What an embarrassing experience! Steps to reproduce:

  1. Open project's main website https://nativescript.org/
  2. Read "NativeScript is pretty cool!" and click the very first CTA (call-to-action) Playground.
  3. Select Svelte, accept cookies, download playground & preview apps, scan the QR code.
  4. The default Preview app is loaded on your phone (instead of one being previewed), trying to change or save anything in the playground leads to a constant error: SRWare Iron (Chrome-like browser, Version 88.0.4324.150 (Developer Build) (x86_64)): l.default is not a function: undefined Safari Version 14.0.3 (15610.4.3.1.7, 15610): l.default is not a function. (In 'l.default()', 'l.default' is undefined): undefined Firefox 88.0 (64-bit): l.default is not a function: undefined "Devices" tab has my device successfully identified btw. Other playgrounds also seems to work fine. System: macOS Catalina 10.15.7 (Intel), iPhone 7 Plus: iOS 14.4.2, Preview version 1.31.0, Runtime 6.5.3

A friend of mine, in front of whom I was embarrassed with this horrifying experience, received a very clear message: this framework is full of bugs and unsolved problems, nothing will ever work as intended from the first try and probably won't even try the real experience.

At least, please remove this community playground template from the main page until it's fixed!

vsly-ru avatar Apr 26 '21 10:04 vsly-ru

Some news about this?? I understand completely that this is open-source, but this long term situation without any review, diagnostic or advance, doesn't bring any confidence to use this framework. :(

mkvillalobos avatar Nov 19 '21 02:11 mkvillalobos

do we know what the issue is? it's obviously still not working

anzbert avatar Dec 22 '21 06:12 anzbert

Still not working, and for me the Svelte Native REPL also isn't working 😔

selenated avatar Jan 06 '22 15:01 selenated

Valentine's day! let's give this issue some love :)

carleeto avatar Feb 13 '22 20:02 carleeto

I'm glad I've learned Flutter (by a friend's recommendation) and implemented my project using it. All while this issue ain't fixed or even acknowledged.

vsly-ru avatar Feb 14 '22 06:02 vsly-ru

Still not working :(

mochi-co avatar Mar 09 '22 11:03 mochi-co

Am building an application with Flutter (with no prior knowledge of Flutter or Dart). Lately it is becoming pretty complicated to continue developing so I thought I will check some JS cross-platform tools (since I already know JS and some frameworks) and choose one so I can migrate it.

Tried Capacitorjs - problems from the start. Now trying Nativescript - Downloaded the app, very unresponsive. Scanned the QR code, it gets stuck in a black screen. Cant even run the example LISTED IN THE HOMEPAGE. I find this issue, and see it has been open for almost 2 years. This is just crazy. I heard React-Native is very buggy also so I will not even bother trying it out.

I will just go and continue develop in Flutter. The JS ecosystem for cross platform is not yet ready. Very disappointing.

Nderim1 avatar Jun 12 '22 12:06 Nderim1

In my personal experience, React Native isn't too buggy, at least with Expo as a base, but I haven't done a ton of development with it* and I also haven't tried Flutter. It'd be worth a try if you're interested I think

*: I built a notes app with network functionality, markdown parsing, basic navigation, modals, and custom bottom sheets. It's pretty simple stuff and I didn't need to get too far into the nitty gritty of development outside of the sheets if I remember right. I don't think I ran into any bugs off the top of my head, but you might if your app gets very complex

selenated avatar Jun 12 '22 15:06 selenated

@Nderim1 curious on you local dev environment setup? Just this past week Preview 2.0 was shown with StackBlitz which will replace the playground (which is quite old): https://twitter.com/NativeScript/status/1534242245020422145

You can setup local environment anytime however: https://docs.nativescript.org/environment-setup.html

NathanWalker avatar Jun 12 '22 15:06 NathanWalker