-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
Support VuePress (dev server) #20618
Comments
Running on Deno v1.37 I get this:
Which suggests |
@bartlomieju , with Deno 1.37.1? I still get the same response as I did few weeks ago. |
Yes, that's with Deno v1.37.1. I believe the error you are getting is coming from |
Update for Deno 1.37.2, for dev and build tasks: ➜ deno task build
Task build vuepress build src
wait Extracting site metadata...
tip Apply theme @vuepress/theme-default ...
warning An error was encountered in plugin "@vuepress/plugin-back-to-top"
warning An error was encountered in plugin "@vuepress/plugin-medium-zoom"
tip Apply plugin container (i.e. "vuepress-plugin-container") ...
tip Apply plugin @vuepress/register-components (i.e. "@vuepress/plugin-register-components") ...
tip Apply plugin @vuepress/active-header-links (i.e. "@vuepress/plugin-active-header-links") ...
tip Apply plugin @vuepress/search (i.e. "@vuepress/plugin-search") ...
tip Apply plugin @vuepress/nprogress (i.e. "@vuepress/plugin-nprogress") ...
Error: Cannot find module 'vue-template-compiler' |
With deno 1.38.2, the last line ➜ deno task dev
Task dev vuepress dev src
wait Extracting site metadata...
tip Apply theme @vuepress/theme-default ...
warning An error was encountered in plugin "@vuepress/plugin-back-to-top"
warning An error was encountered in plugin "@vuepress/plugin-medium-zoom"
tip Apply plugin container (i.e. "vuepress-plugin-container") ...
tip Apply plugin @vuepress/register-components (i.e. "@vuepress/plugin-register-components") ...
tip Apply plugin @vuepress/active-header-links (i.e. "@vuepress/plugin-active-header-links") ...
tip Apply plugin @vuepress/search (i.e. "@vuepress/plugin-search") ...
tip Apply plugin @vuepress/nprogress (i.e. "@vuepress/plugin-nprogress") ... |
Deno 1.40.5 i get: ➜ deno task dev
Task dev vuepress dev src
Unstable API 'Deno.FsFile.syncSync'. The `--unstable-fs` flag must be provided. But I can't seem to figure out how to set the flag update: it didn't work in the cli, but the deno.json here worked, and I get the same output as reported above: {
"unstable": ["fs"]
} |
According to this: .. these are related: |
Tried getting latest canary (deno 1.43.0+8178f75), and running: deno run -A npm:create-vuepress-site
npm i
DENO_FUTURE=1 deno task dev I still see this: #20618 (comment) |
Deno 2 rc.2: deno run -A npm:create-vuepress-site
deno i
deno task dev I'll go to the localhost, see a white page and a console with this: cjs.js?{"cacheDirectory":"node_modules/.deno/@[email protected]/node_modules/@vuepress/core/node_modules/.cache/vuepress","cacheIdentifier":"35d80d21-vue-loader-template"}!./node_modules/.deno/[email protected]/node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/.deno/[email protected]/node_modules/cache-loader/dist/cjs.js?!./node_modules/.deno/[email protected]/node_modules/vue-loader/lib/index.js?!./node_modules/.deno/@[email protected]/node_modules/@vuepress/core/lib/client/components/GlobalLayout.vue?vue&type=template&id=3a922976:1 Uncaught Error: Module build failed (from ./node_modules/.deno/[email protected]/node_modules/vue-loader/lib/loaders/templateLoader.js):
TypeError: this.body.initialise is not a function
at new Program (:8080/Users/admin/repos/deno-kitchensink/vuepress-434/docs/node_modules/.deno/[email protected]/node_modules/vue-template-es2015-compiler/buble.js:16602:12)
at Object.transform (:8080/Users/admin/repos/deno-kitchensink/vuepress-434/docs/node_modules/.deno/[email protected]/node_modules/vue-template-es2015-compiler/buble.js:16847:9)
at transpile (:8080/Users/admin/repos/deno-kitchensink/vuepress-434/docs/node_modules/.deno/[email protected]/node_modules/vue-template-es2015-compiler/index.js:23:20)
at actuallyCompile (:8080/Users/admin/repos/deno-kitchensink/vuepress-434/docs/node_modules/.deno/@[email protected]/node_modules/@vue/component-compiler-utils/dist/compileTemplate.js:93:20)
at Object.compileTemplate (:8080/Users/admin/repos/deno-kitchensink/vuepress-434/docs/node_modules/.deno/@[email protected]/node_modules/@vue/component-compiler-utils/dist/compileTemplate.js:33:16)
at module.exports (:8080/Users/admin/repos/deno-kitchensink/vuepress-434/docs/node_modules/.deno/[email protected]/node_modules/vue-loader/lib/loaders/templateLoader.js:71:29)
at new Program (:8080/Users/admin/repos/deno-kitchensink/vuepress-434/docs/node_modules/.deno/[email protected]/node_modules/vue-template-es2015-compiler/buble.js:16602:12)
at Object.transform (:8080/Users/admin/repos/deno-kitchensink/vuepress-434/docs/node_modules/.deno/[email protected]/node_modules/vue-template-es2015-compiler/buble.js:16847:9)
at transpile (:8080/Users/admin/repos/deno-kitchensink/vuepress-434/docs/node_modules/.deno/[email protected]/node_modules/vue-template-es2015-compiler/index.js:23:20)
at actuallyCompile (:8080/Users/admin/repos/deno-kitchensink/vuepress-434/docs/node_modules/.deno/@[email protected]/node_modules/@vue/component-compiler-utils/dist/compileTemplate.js:93:20)
at Object.compileTemplate (:8080/Users/admin/repos/deno-kitchensink/vuepress-434/docs/node_modules/.deno/@[email protected]/node_modules/@vue/component-compiler-utils/dist/compileTemplate.js:33:16)
at module.exports (:8080/Users/admin/repos/deno-kitchensink/vuepress-434/docs/node_modules/.deno/[email protected]/node_modules/vue-loader/lib/loaders/templateLoader.js:71:29)
at eval (cjs.js?{"cacheDirectory":"node_modules/.deno/@[email protected]/node_modules/@vuepress/core/node_modules/.cache/vuepress","cacheIdentifier":"35d80d21-vue-loader-template"}!./node_modules/.deno/[email protected]/node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/.deno/[email protected]/node_modules/cache-loader/dist/cjs.js?!./node_modules/.deno/[email protected]/node_modules/vue-loader/lib/index.js?!./node_modules/.deno/@[email protected]/node_modules/@vuepress/core/lib/client/components/GlobalLayout.vue?vue&type=template&id=3a922976:1:7)
at ./node_modules/.deno/[email protected]/node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.deno/@[email protected]/node_modules/@vuepress/core/node_modules/.cache/vuepress","cacheIdentifier":"35d80d21-vue-loader-template"}!./node_modules/.deno/[email protected]/node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/.deno/[email protected]/node_modules/cache-loader/dist/cjs.js?!./node_modules/.deno/[email protected]/node_modules/vue-loader/lib/index.js?!./node_modules/.deno/@[email protected]/node_modules/@vuepress/core/lib/client/components/GlobalLayout.vue?vue&type=template&id=3a922976 (app.js:1496:1)
at __webpack_require__ (app.js:833:30)
at fn (app.js:130:20)
at eval (GlobalLayout.vue?vue&type=template&id=3a922976:2:548)
at ./node_modules/.deno/@[email protected]/node_modules/@vuepress/core/lib/client/components/GlobalLayout.vue?vue&type=template&id=3a922976 (app.js:1235:1)
at __webpack_require__ (app.js:833:30)
at fn (app.js:130:20)
at eval (GlobalLayout.vue:2:105)
at ./node_modules/.deno/@[email protected]/node_modules/@vuepress/core/lib/client/components/GlobalLayout.vue (app.js:1211:1) |
Looks like the issue comes from buble.js. It depends on If I add
|
I don't think we should test Instead we should test with
The above command starts the dev server, but it shows the error page on the browser. It says:
|
@kt3k , oh your right, I hadn't noticed this was the old create cli! I'll close this issue, because the sass error is the same for all of npm/pnpm/deno, and things work as expected after merely adding it to the devDeps with |
Platform
Darwin 22.6.0 arm64 arm
Version
deno 1.40.1
Repro:
deno run -A npm:create-vuepress-site
deno task dev
Expected
Run dev server
Actual
The text was updated successfully, but these errors were encountered: