Open shio3ch opened 1 week ago
pnpm create slidev で作った直後から失敗している。
pnpm create slidev
まっさら環境で npm init slidev を実行しても失敗した。 nodeやpnpmのバージョンが合わないわけでもない。
npm init slidev
node -v v20.15.0
pnpm -v 9.4.0
pnpm dev > slidev-presentation@1.0.0 dev /Users/shio3ch/workspace/slidev-presentation > turbo run dev • Packages in scope: 2024-06-24_test-code, @repo/eslint-config • Running dev in 2 packages • Remote caching disabled ┌ 2024-06-24_test-code#dev > cache miss, executing 63ad7712ce9a26bd │ │ > 2024-06-24_test-code@ dev /Users/shio3ch/workspace/slidev-presentation/slides/2024-06-24_test-code │ > slidev │ │ file:///Users/shio3ch/workspace/slidev-presentation/node_modules/.pnpm/twoslash-vue@0.2.8_typescript@5.5.2/node_modules/twoslash-vue │ /dist/index.mjs:1 │ import { SourceMap, createVueLanguagePlugin, resolveVueCompilerOptions, createLanguage, FileMap } from '@vue/language-core'; │ ^^^^^^^^^ │ SyntaxError: Named export 'SourceMap' not found. The requested module '@vue/language-core' is a CommonJS module, which may not suppo │ rt all module.exports as named exports. │ CommonJS modules can always be imported via the default export, for example using: │ │ import pkg from '@vue/language-core'; │ const { SourceMap, createVueLanguagePlugin, resolveVueCompilerOptions, createLanguage, FileMap } = pkg; │ │ at ModuleJob._instantiate (node:internal/modules/esm/module_job:134:21) │ at async ModuleJob.run (node:internal/modules/esm/module_job:217:5) │ at async ModuleLoader.import (node:internal/modules/esm/loader:316:24) │ at async Promise.all (index 3) │ at async createMarkdownItShiki (file:///Users/shio3ch/workspace/slidev-presentation/node_modules/.pnpm/@slidev+cli@0.49.11_@babe │ l+parser@7.24.7_@nuxt+kit@3.12.2_rollup@4.18.0__@types+markdown-it@1_6tnekf4fwgz6aia3gk7z6ugwwu/node_modules/@slidev/cli/dist/chunk- │ 4LA667A3.mjs:9295:7) │ at async createMarkdownPlugin (file:///Users/shio3ch/workspace/slidev-presentation/node_modules/.pnpm/@slidev+cli@0.49.11_@babel │ +parser@7.24.7_@nuxt+kit@3.12.2_rollup@4.18.0__@types+markdown-it@1_6tnekf4fwgz6aia3gk7z6ugwwu/node_modules/@slidev/cli/dist/chunk-4 │ LA667A3.mjs:9237:20) │ at async Promise.all (index 0) │ at async ViteSlidevPlugin (file:///Users/shio3ch/workspace/slidev-presentation/node_modules/.pnpm/@slidev+cli@0.49.11_@babel+par │ ser@7.24.7_@nuxt+kit@3.12.2_rollup@4.18.0__@types+markdown-it@1_6tnekf4fwgz6aia3gk7z6ugwwu/node_modules/@slidev/cli/dist/chunk-4LA66 │ 7A3.mjs:9603:11) │ at async resolveViteConfigs (file:///Users/shio3ch/workspace/slidev-presentation/node_modules/.pnpm/@slidev+cli@0.49.11_@babel+p │ arser@7.24.7_@nuxt+kit@3.12.2_rollup@4.18.0__@types+markdown-it@1_6tnekf4fwgz6aia3gk7z6ugwwu/node_modules/@slidev/cli/dist/chunk-4LA │ 667A3.mjs:9671:7) │ at async createServer (file:///Users/shio3ch/workspace/slidev-presentation/node_modules/.pnpm/@slidev+cli@0.49.11_@babel+parser@ │ 7.24.7_@nuxt+kit@3.12.2_rollup@4.18.0__@types+markdown-it@1_6tnekf4fwgz6aia3gk7z6ugwwu/node_modules/@slidev/cli/dist/chunk-G75DCGK3. │ mjs:11:24) │ │ Node.js v20.15.0 │ ELIFECYCLE Command failed with exit code 1. │ command finished with error: command (/Users/shio3ch/workspace/slidev-presentation/slides/2024-06-24_test-code) /usr/local/bin/pnpm │ run dev exited (1) └────> ERROR run failed: command exited (1) ELIFECYCLE Command failed with exit code 1.
行き詰まっちゃった
pnpm create slidev
で作った直後から失敗している。まっさら環境で
npm init slidev
を実行しても失敗した。 nodeやpnpmのバージョンが合わないわけでもない。