slidev: error when init project
Describe the bug
init a new project, error happen when start dev server
[postcss] /@slidev/slides/5.md?vue&type=style&index=0&scoped=90fd6163&lang.css:9:2: Unknown word (x5) 9:30:24 AM [vite] Internal server error: [postcss] /@slidev/slides/2.md?vue&type=style&index=0&scoped=ae5e7f61&lang.css:9:2: Unknown word Plugin: vite:css File: /@slidev/slides/2.md?vue&type=style&index=0&scoped=ae5e7f61&lang.css:9:2 7 | -webkit-text-fill-color: transparent; 8 | -moz-text-fill-color: transparent; 9 | }
| ^ 10 | </div></template> 11 | <script setup> at Input.error (/Users/dym/code/vue/slidev/node_modules/.pnpm/postcss@8.4.21/node_modules/postcss/lib/input.js:148:16) at Parser.unknownWord (/Users/dym/code/vue/slidev/node_modules/.pnpm/postcss@8.4.21/node_modules/postcss/lib/parser.js:540:22) at Parser.other (/Users/dym/code/vue/slidev/node_modules/.pnpm/postcss@8.4.21/node_modules/postcss/lib/parser.js:164:12) at Parser.parse (/Users/dym/code/vue/slidev/node_modules/.pnpm/postcss@8.4.21/node_modules/postcss/lib/parser.js:72:16) at parse (/Users/dym/code/vue/slidev/node_modules/.pnpm/postcss@8.4.21/node_modules/postcss/lib/parse.js:11:12) at new LazyResult (/Users/dym/code/vue/slidev/node_modules/.pnpm/postcss@8.4.21/node_modules/postcss/lib/lazy-result.js:133:16) at Processor.process (/Users/dym/code/vue/slidev/node_modules/.pnpm/postcss@8.4.21/node_modules/postcss/lib/processor.js:28:14) at compileCSS (file:///Users/dym/code/vue/slidev/node_modules/.pnpm/vite@4.2.1/node_modules/vite/dist/node/chunks/dep-79892de8.js:38356:14) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async TransformContext.transformTo Reproduce Steps to reproduce the behavior:
- run
pnpm create slidevin terminal - See the error
Desktop (please complete the following information):
- OS: macos 13.3 (22E252)
- Browser: chrome 112
- Slidev version: 0.40.10
About this issue
- Original URL
- State: closed
- Created a year ago
- Reactions: 2
- Comments: 28 (5 by maintainers)
Commits related to this issue
- Bump slidev to v0.42.9 0.42.8 broke the build, similar to this closed issue: https://github.com/slidevjs/slidev/issues/954 0.42.7 was working so 0.42.8 introduced the bug, 0.42.9 fixed it. — committed to nearform/the-graphql-workshop by d4nyll 10 months ago
- Bump slidev to v0.42.9 (#492) 0.42.8 broke the build, similar to this closed issue: https://github.com/slidevjs/slidev/issues/954 0.42.7 was working so 0.42.8 introduced the bug, 0.42.9 fixed it. — committed to nearform/the-graphql-workshop by d4nyll 10 months ago
Try
v0.40.12Just got the same problem. I think it might be related to <style> tags in the markdown slide source. If you remove any styles from slides.md it still errors, but you can dismiss the modal.
I’m experiencing this issue on 0.42.x and 0.41.1
I’m also experiencing the same issue on all 0.42.x. It is working on 0.41.1.
@fguisso I don’t know why you’re tagging me? I’m not a maintainer of this project, I just contributed 1 small feature that has nothing to do with PostCSS. And as other have pointed out, this issue exists at least since v0.40.1 and my contribution was long after that.
I tried to reproduce it locally, and I get different versions of the same error (
unknown word) even with v0.40.0I had the same problem.
I have switched versions and verified that it works with 0.40.0, but with 0.40.1, I seem to get the same error.
0.40.1 -> Error https://stackblitz.com/edit/slidev-nvgbpc?file=package.json
0.40.0 -> Working https://stackblitz.com/edit/slidev-ihf7qw?file=package.json
I had the same problem