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

Error Loop #3040

Open
chatwellai opened this issue Nov 23, 2024 · 0 comments
Open

Error Loop #3040

chatwellai opened this issue Nov 23, 2024 · 0 comments

Comments

@chatwellai
Copy link

Describe the bug

[plugin:vite:react-babel] /home/project/src/pages/CreateStory.tsx: Expecting Unicode escape sequence \uXXXX. (35:26)
38 | .upload(fileName, coverImage);
/home/project/src/pages/CreateStory.tsx:35:26
33 | if (coverImage) {
34 | const fileExt = coverImage.name.split('.').pop();
35 | const fileName = `${Math.random()}${Date.now()}.${fileExt}`;
| ^
36 | const { error: uploadError, data } = await supabase.storage
37 | .from('story-images')
at constructor (file:///home/project/node_modules/@babel/parser/lib/index.js#cjs:359:19)
at TypeScriptParserMixin.raise (file:///home/project/node_modules/@babel/parser/lib/index.js#cjs:3266:19)
at TypeScriptParserMixin.readWord1 (file:///home/project/node_modules/@babel/parser/lib/index.js#cjs:3226:16)
at TypeScriptParserMixin.readWord (file:///home/project/node_modules/@babel/parser/lib/index.js#cjs:3246:23)
at TypeScriptParserMixin.getTokenFromCode (file:///home/project/node_modules/@babel/parser/lib/index.js#cjs:2965:14)
at TypeScriptParserMixin.getTokenFromCode (file:///home/project/node_modules/@babel/parser/lib/index.js#cjs:6851:11)
at TypeScriptParserMixin.getTokenFromCode (file:///home/project/node_modules/@babel/parser/lib/index.js#cjs:9640:11)
at TypeScriptParserMixin.nextToken (file:///home/project/node_modules/@babel/parser/lib/index.js#cjs:2449:10)
at TypeScriptParserMixin.next (file:///home/project/node_modules/@babel/parser/lib/index.js#cjs:2362:10)
at TypeScriptParserMixin.eat (file:///home/project/node_modules/@babel/parser/lib/index.js#cjs:2366:12

Link to the Bolt URL that caused the error

https://bolt.new/~/sb1-rnvkgj

Steps to reproduce

The following error presents at every prompt generation: [plugin:vite:react-babel] /home/project/src/pages/CreateStory.tsx: Expecting Unicode escape sequence \uXXXX. (35:26)
38 | .upload(fileName, coverImage);
/home/project/src/pages/CreateStory.tsx:35:26
33 | if (coverImage) {
34 | const fileExt = coverImage.name.split('.').pop();
35 | const fileName = `${Math.random()}${Date.now()}.${fileExt}`;
| ^
36 | const { error: uploadError, data } = await supabase.storage
37 | .from('story-images')
at constructor (file:///home/project/node_modules/@babel/parser/lib/index.js#cjs:359:19)
at TypeScriptParserMixin.raise (file:///home/project/node_modules/@babel/parser/lib/index.js#cjs:3266:19)
at TypeScriptParserMixin.readWord1 (file:///home/project/node_modules/@babel/parser/lib/index.js#cjs:3226:16)
at TypeScriptParserMixin.readWord (file:///home/project/node_modules/@babel/parser/lib/index.js#cjs:3246:23)
at TypeScriptParserMixin.getTokenFromCode (file:///home/project/node_modules/@babel/parser/lib/index.js#cjs:2965:14)
at TypeScriptParserMixin.getTokenFromCode (file:///home/project/node_modules/@babel/parser/lib/index.js#cjs:6851:11)
at TypeScriptParserMixin.getTokenFromCode (file:///home/project/node_modules/@babel/parser/lib/index.js#cjs:9640:11)
at TypeScriptParserMixin.nextToken (file:///home/project/node_modules/@babel/parser/lib/index.js#cjs:2449:10)
at TypeScriptParserMixin.next (file:///home/project/node_modules/@babel/parser/lib/index.js#cjs:2362:10)
at TypeScriptParserMixin.eat (file:///home/project/node_modules/@babel/parser/lib/index.js#cjs:2366:12

Expected behavior

not sure

Screen Recording / Screenshot

No response

Platform

Browser name = Chrome
Full version = 131.0.0.0
Major version = 131
navigator.appName = Netscape
navigator.userAgent = Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36 Edg/131.0.0.0
performance.memory = {
  "totalJSHeapSize": 112171214,
  "usedJSHeapSize": 94407914,
  "jsHeapSizeLimit": 4294705152
}
Username = chatwellai
Chat ID = 24b96bfd0c44

Additional context

No response

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

1 participant