ui icon indicating copy to clipboard operation
ui copied to clipboard

Bad character escape sequence error after next 13.3 update

Open kratos-respawned opened this issue 2 years ago • 7 comments

I am getting this error after the latest next13 update

./components/ui/alert-dialog.tsx
Module parse failed: Bad character escape sequence (2:67)
| import { createProxy } from "next/dist/build/webpack/loaders/next-flight-loader/module-proxy"
> const proxy = createProxy("C:\Users\sbhan\Desktop\dhun\components\ui\alert-dialog.tsx")
| 
| // Accessing the __esModule property and exporting $$typeof are required here.

kratos-respawned avatar Apr 18 '23 13:04 kratos-respawned

This is a NextJS issue on Windows that is fixed in the latest canary not related to this project.

Seems they had problems parsing the "use client"

aranlucas avatar Apr 18 '23 15:04 aranlucas

Is there any way to resolve this issue? I am also getting the same error, I created the next app using canary and the moment I used 'use client' I got this error

hemantwasthere avatar Apr 21 '23 12:04 hemantwasthere

Is there any way to resolve this issue? I am also getting the same error, I created the next app using canary and the moment I used 'use client' I got this error

I am using turbopack as a temporary workaround

kratos-respawned avatar Apr 21 '23 14:04 kratos-respawned

Is there any way to resolve this issue? I am also getting the same error, I created the next app using canary and the moment I used 'use client' I got this error

I am using turbopack as a temporary workaround

What is turbopack, Can you please share any resources regarding that.

hemantwasthere avatar Apr 21 '23 14:04 hemantwasthere

I'm also having this problem, as soon as I solve it, I'll give you feedback.

joaoalcdev avatar Apr 21 '23 14:04 joaoalcdev

Is there any way to resolve this issue? I am also getting the same error, I created the next app using canary and the moment I used 'use client' I got this error

I am using turbopack as a temporary workaround

What is turbopack, Can you please share any resources regarding that.

Use npm or pnpm dev with --turbo flag , for more info checkout https://turbo.build/pack

kratos-respawned avatar Apr 21 '23 14:04 kratos-respawned

Updating to latest release https://github.com/vercel/next.js/releases/tag/v13.3.1 should fix this

aranlucas avatar Apr 22 '23 21:04 aranlucas

fixed with the latest version of next 💕

kratos-respawned avatar May 02 '23 17:05 kratos-respawned