Remix error
See original GitHub issueVersion of antd-mobile
5.12.6
Operating system and its version
Others
Browser and its version
Chrome 101.0.4951.67 (Official Build) (64-bit)
Sandbox to reproduce
https://stackblitz.com/edit/node-qtgzuc?file=app/routes/index.tsx
What happened?
There’s an error related to css.
I expected to work like documentation says: https://mobile.ant.design/guide/ssr
Relevant log output
D:\projects\prototypes\remixindiestack\node_modules\antd-mobile\cjs\global\global.css:1
:root {
^
SyntaxError: Unexpected token ':'
at Object.compileFunction (node:vm:352:18)
at wrapSafe (node:internal/modules/cjs/loader:1031:15)
at Module._compile (node:internal/modules/cjs/loader:1065:27)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object.<anonymous> (D:\PROJEKTI\prototypes\remixindiestack\node_modules\antd-mobile\cjs\global\index.js:3:1)
at Module._compile (node:internal/modules/cjs/loader:1101:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object.<anonymous> (D:\PROJEKTI\prototypes\remixindiestack\node_modules\antd-mobile\cjs\index.js:475:1)
Issue Analytics
- State:
- Created a year ago
- Comments:11 (11 by maintainers)
Top Results From Across the Web
Error Handling - Remix
Remix sets a new precedent in web application error handling that you are going to love. Remix automatically catches most errors in your...
Read more >Error handling with Remix JS - Bits and Pieces
The basic idea behind errors in Remix. Much like events in the front-end, errors in Remix bubble up the component hierarchy until they...
Read more >How to handle errors gracefully in Remix - Code Gino
From the Remix official documentation. Remix will automatically catch errors and render the nearest error boundary for errors thrown while:.
Read more >Handling Errors in Remix: A Guide. - DEV Community
One of the most common errors you would see when working with remix is the 404 error, thrown by the server when the...
Read more >Handling errors in Remix - Daily Dev Tips
Remix supports multiple error boundaries let's explore how they work.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@tombohub Here is the latest updated doc, which has not been published yet.
+1 Seems like to be a problem with npm.