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

code block adaptation issue #115

Open
shpdnkti opened this issue Aug 10, 2022 · 1 comment
Open

code block adaptation issue #115

shpdnkti opened this issue Aug 10, 2022 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@shpdnkti
Copy link

Describe the bug

There is a problem with the code block adaptation,i built it by cloudflare page.
Maybe not support escape character or other reasons. pls help me find out how to fix it.

  • error stack:
21:57:17.717	> Using @sveltejs/adapter-static
21:57:17.717	[vite-plugin-svelte-kit] Cannot read properties of undefined (reading 'paths')
21:57:17.717	error during build:
21:57:17.717	TypeError: Cannot read properties of undefined (reading 'paths')
21:57:17.718	    at create_builder (file:///opt/buildhome/repo/node_modules/@sveltejs/kit/dist/chunks/index2.js:52:48)
21:57:17.718	    at adapt (file:///opt/buildhome/repo/node_modules/@sveltejs/kit/dist/chunks/index2.js:204:18)
21:57:17.718	    at Object.closeBundle (file:///opt/buildhome/repo/node_modules/@sveltejs/kit/dist/vite.js:3104:11)
21:57:17.718	    at async Promise.all (index 0)
21:57:17.718	    at async /opt/buildhome/repo/node_modules/rollup/dist/shared/rollup.js:23693:13
21:57:17.718	    at async catchUnfinishedHookActions (/opt/buildhome/repo/node_modules/rollup/dist/shared/rollup.js:23174:20)
21:57:17.718	    at async rollupInternal (/opt/buildhome/repo/node_modules/rollup/dist/shared/rollup.js:23682:5)
21:57:17.719	    at async doBuild (/opt/buildhome/repo/node_modules/vite/dist/node/chunks/dep-c9998dc6.js:41710:24)
21:57:17.719	    at async build (/opt/buildhome/repo/node_modules/vite/dist/node/chunks/dep-c9998dc6.js:41552:16)
21:57:17.719	    at async CAC.<anonymous> (/opt/buildhome/repo/node_modules/vite/dist/node/cli.js:738:9)
21:57:17.744	error Command failed with exit code 1.
21:57:17.744	info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
21:57:17.758	Failed: build command exited with code: 1
21:57:18.586	Failed: an internal error occurred
  • original code block content
````bash
ok () { echo -e "[\033[032;1mOK\033[0m $(date +%F/%T) $BASH_LINENO] $@" | tee -a $LOG_FILE 2>&1; return 0; }
info () { echo -e "[\033[034;1mINFO\033[0m $(date +%F/%T) $BASH_LINENO] $@" | tee -a $LOG_FILE 2>&1; return $?; }
fail () { echo -e "[\033[031;1mFAIL\033[0m $(date +%F/%T) $BASH_LINENO] $@" | tee -a $LOG_FILE 2>&1; return $?; }
err () { echo -e "[\033[031;1mERR\033[0m $(date +%F/%T) $BASH_LINENO] $@" | tee -a $LOG_FILE 2>&1; exit 1; }
....
@YeungKC
Copy link
Owner

YeungKC commented Aug 10, 2022

I test the code block content, I think it was cause by Mdsvex, I'll test it over the weekend again.

thank you

@YeungKC YeungKC self-assigned this Aug 10, 2022
@YeungKC YeungKC added the bug Something isn't working label Aug 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants