slidev
slidev copied to clipboard
Failed to build slides under the sub folder with the latest 0.32.3
Describe the bug As the title, I can pass the following commands for 0.30.x, 0.31.x, but failed on the latest 0.32.3. Any help would be appreciated!
yarn create slidev
cd slidev
yarn install
mkdir subfolder
mv slides.md subfolder
npm run build ./subfolder/slides.md # Failed
❯ npm run build ./subfolder/slides.md
> build
> slidev build "./subfolder/slides.md"
Error: Failed to resolve package "/tmp/slides/subfolder/package.json"
at resolveImportPath (/tmp/slides/node_modules/@slidev/cli/dist/chunk-JWGORJY6.js:121:11)
at getPackageJson (/tmp/slides/node_modules/@slidev/cli/dist/chunk-N7XL66RP.js:9515:72)
at getAddons (/tmp/slides/node_modules/@slidev/cli/dist/chunk-N7XL66RP.js:9518:33)
at resolveOptions (/tmp/slides/node_modules/@slidev/cli/dist/chunk-N7XL66RP.js:9600:24)
at async Object.handler (/tmp/slides/node_modules/@slidev/cli/dist/cli.js:172:19)
Desktop (please complete the following information):
- OS: Arch Linux with kernel 5.17.9
- Browser: Mozilla Firefox 100.0.2
- Slidev version: 0.32.3