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

compatibility problem: __uno.css:9 Uncaught SyntaxError: Unexpected reserved word #1461

Closed
JiatLn opened this issue Aug 24, 2022 · 7 comments

Comments

@JiatLn
Copy link

JiatLn commented Aug 24, 2022

maybe is a compatibility problem?

browser: Sogou Browser
version: 11.0.1.34700

example project: https://github.com/JiatLn/vvtt

when run npm run dev, the page is empty and throw error __uno.css:9 Uncaught SyntaxError: Unexpected reserved word
on console following:

image

image

@antfu
Copy link
Member

antfu commented Aug 25, 2022

Can you try with the latest Chrome?

@JiatLn
Copy link
Author

JiatLn commented Aug 25, 2022

Can you try with the latest Chrome?

@antfu yes, is work in chrome but not in Sogou Browser

@antfu
Copy link
Member

antfu commented Aug 25, 2022

Maybe it's because the browser does not support top-level await? Any reason to use it over Chrome for development?

@JiatLn
Copy link
Author

JiatLn commented Aug 25, 2022

Maybe it's because the browser does not support top-level await? Any reason to use it over Chrome for development?

I development was used chorme, but also need to debug at other browser to fix other style compatibility problem, so :(

@Jurool
Copy link

Jurool commented Aug 25, 2022

Maybe it's because the browser does not support top-level await? Any reason to use it over Chrome for development?

I development was used chorme, but also need to debug at other browser to fix other style compatibility problem, so :(

Chrome is recommended for development, and compatibility should be tested in build mode

@antfu antfu closed this as not planned Won't fix, can't repro, duplicate, stale Aug 26, 2022
@vinoMamba
Copy link

If you are developing on dingtalk enviroment, you should upgrade you dingtalk debugg tool

@zyyv
Copy link
Member

zyyv commented Jan 13, 2023

We optimized it on #2066 , you can try it.

/**
* Use top level await in HMR code to avoid FOUC on dev time.
*
* You usually don't need to disable this, unless you are developing on
* a browser that does not support top level await.
*
* This will only affect on dev time.
*
* @default true
*/
hmrTopLevelAwait?: boolean

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants