We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
in vite: 1.0.0-rc.1, when I use stylus as :
import './index.styl'
or
<style lang="stylus" scoped> </>
stylus seems not work.
BTW in vite 1.0.0-beta.3 and @vue/compiler-sfc ^3.0.0-beta.15, everything is fine.
npm init vite-app project1 cd project1 npm i npm install -D stylus
then transform index.css to index.styl, npm run dev.
@vue/compiler-sfc: 3.0.0-rc.1 vite: 1.0.0-rc.1 macos: 10.15.6 node: 12.16.1
[vite] error applying css transforms: TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined at validateString (internal/validators.js:117:11) at Object.dirname (path.js:1128:5) ... code: 'ERR_INVALID_ARG_TYPE'
The text was updated successfully, but these errors were encountered:
Temporary workaround: Go to file "node_modules/@vue/compiler-sfc/dist/compiler-sfc.cjs.js" at line 886. Change options.fileName to options.filename
options.fileName
options.filename
Sorry, something went wrong.
fix(compiler-sfc): use filename from options when compile styl prep…
filename
b5861bb
…rocessor fix #vitejs/vite#577
0526e5d
…rocessor (#1635) fix #vitejs/vite#577
Closed via PR in vue-next
No branches or pull requests
Describe the bug
in vite: 1.0.0-rc.1, when I use stylus as :
or
<style lang="stylus" scoped> </>
stylus seems not work.
BTW in vite 1.0.0-beta.3 and @vue/compiler-sfc ^3.0.0-beta.15, everything is fine.
Reproduction
then transform index.css to index.styl, npm run dev.
System Info
error log
The text was updated successfully, but these errors were encountered: