Giter Club home page Giter Club logo

Comments (11)

okikio avatar okikio commented on June 5, 2024 1

I actually used the preview version of Safari, the latest stable version has a "unexpected keyword export", which I guess it because of modules not being supported in workers or something similar.

As it works as expected in other browsers, this just seems too bad, but no way to figure out what could cause it

This might be an issue with the Safari preview then, I'll wait to see if the Safari team will fix the issue.

The "unexpected keyword export", is because using modules in workers just got added this year in Chrome, Firefox, and Safari, and since Safari only gets one update a year, the current stable Safari won't be getting support for modules in workers by maybe next month, when the Safari preview is moved to stable.

from bundlejs.

okikio avatar okikio commented on June 5, 2024

Unfortunately, I don't own a Mac so, I can't test on Safari, however, I'd like to know more about this issue, could you please describe what happens, before this error appears on Safari.

from bundlejs.

Haroenv avatar Haroenv commented on June 5, 2024

I'm not really sure how to describe the issue, but I can show the recording:

Screen.Recording.2021-09-13.at.16.30.21.mov

The fourth time I tried and refreshed it actually did work:

Screenshot 2021-09-13 at 16 32 11

I tried opening the devtools to the line of that error, but I guess the file is too big as it crashed my browser every time I tried to open it.

from bundlejs.

okikio avatar okikio commented on June 5, 2024

Yeah, don't try to inspect the code with devtools, it's about a MB (GZIPPED) in total of just pure code, it will crash basically every browsers devtools.

Also, I heard Safari is very iffy in terms of reliability, so, sometimes it works, sometimes it doesn't. When I built https://bundle.js.org, I built using the lowest common denominator, making sure all the API's I used were also compatible with Safari, so, I'm not sure why Safari would be having such issues. Could please monitor this issue, to see if it occurs again? I'll close this issue for now, but if you are able to replicate the initial issue, I'll reopen it.

from bundlejs.

Haroenv avatar Haroenv commented on June 5, 2024

The video is a reproduction @okikio, I can reproduce it ~4/5 times

from bundlejs.

okikio avatar okikio commented on June 5, 2024

The video is a reproduction @okikio, I can reproduce it ~4/5 times

That's so odd, why does it do that? Would it be possible to try out https://bundle.js.org on the Safari beta? Just to confirm it isn't a bug with Safari.

from bundlejs.

Haroenv avatar Haroenv commented on June 5, 2024

I actually used the preview version of Safari, the latest stable version has a "unexpected keyword export", which I guess it because of modules not being supported in workers or something similar.

As it works as expected in other browsers, this just seems too bad, but no way to figure out what could cause it

from bundlejs.

okikio avatar okikio commented on June 5, 2024

I'm reopening this issue, it seems @natemoo-re already solved a similar issue, in the Astro build repl.

from bundlejs.

natemoo-re avatar natemoo-re commented on June 5, 2024

Not positive that #5 fixes the original issue, but it does seem to fix the "unexpected keyword export" issue in Firefox!

Edit I'm having trouble reproducing the original issue on Safari v14. Not sure why!

from bundlejs.

okikio avatar okikio commented on June 5, 2024

Not positive that #5 fixes the original issue, but it does seem to fix the "unexpected keyword export" issue in Firefox!

Edit I'm having trouble reproducing the original issue on Safari v14. Not sure why!

@Haroenv Specified that on Safari it wouldn't work 4/5 tries, so, it may just be Safari being iffy

from bundlejs.

okikio avatar okikio commented on June 5, 2024

@Haroenv I've fixed the worker module, as I've merged your pull request @natemoo-re

from bundlejs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.