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

feat: enhance CodeSnippet component to support remote URL fetching and line offset #87

Merged
merged 5 commits into from
Jan 17, 2025

Conversation

kalix127
Copy link
Contributor

@kalix127 kalix127 commented Jan 15, 2025

No description provided.

Copy link

vercel bot commented Jan 15, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
shadcn-docs-nuxt ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 16, 2025 5:25pm

components/content/CodeSnippet.vue Outdated Show resolved Hide resolved
@ZTL-UwU
Copy link
Owner

ZTL-UwU commented Jan 16, 2025

Hi, I'm getting a build error on vercel. Could you try building it locally to see if this is a problem?

[17:21:50.752] [error] Build failed in 5.23s
[17:21:50.752] [error] [nuxi] Nuxt Build Error: [nuxt:composable-keys] Expecting Unicode escape sequence \uXXXX (1:1)
[17:21:50.753] file: /vercel/path0/components/content/CodeSnippet.vue?raw:1:1
[17:21:50.753]   file: components/content/CodeSnippet.vue?raw:1:1
[17:21:50.753]   at pp$4.raise (node_modules/acorn/dist/acorn.mjs:3640:13)
[17:21:50.754]   at pp.invalidStringToken (node_modules/acorn/dist/acorn.mjs:5884:10)
[17:21:50.755]   at pp.readWord1 (node_modules/acorn/dist/acorn.mjs:6052:16)
[17:21:50.755]   at pp.readWord (node_modules/acorn/dist/acorn.mjs:6071:19)
[17:21:50.755]   at pp.readToken (node_modules/acorn/dist/acorn.mjs:5355:19)
[17:21:50.755]   at pp.nextToken (node_modules/acorn/dist/acorn.mjs:5348:15)
[17:21:50.755]   at Parser.parse (node_modules/acorn/dist/acorn.mjs:594:8)
[17:21:50.755]   at Function.parse (node_modules/acorn/dist/acorn.mjs:645:35)
[17:21:50.755]   at parse (node_modules/acorn/dist/acorn.mjs:6127:17)
[17:21:50.756]   at parseAndWalk (node_modules/nuxt/dist/shared/nuxt.C9wc04RR.mjs:92:15)
[17:21:50.801] error: script "build" exited with code 1
[17:21:50.804] Error: Command "bun run build" exited with 1
[17:21:51.304] 

@kalix127
Copy link
Contributor Author

I can't now, I'm about to go out. When I get home I'll take a look at it

@kalix127
Copy link
Contributor Author

@ZTL-UwU Somehow the useFetch was causing that

@ZTL-UwU ZTL-UwU merged commit 0ca3648 into ZTL-UwU:main Jan 17, 2025
4 checks passed
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

Successfully merging this pull request may close these issues.

2 participants