question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Version 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:closed
  • Created a year ago
  • Comments:11 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
awmleercommented, May 25, 2022

@tombohub Here is the latest updated doc, which has not been published yet.

0reactions
awmleercommented, May 26, 2022

+1 Seems like to be a problem with npm.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found