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
When I try to import Google Fonts or any external URL via @import url('https://...'), it throws an error: Cannot read property 'isNull' of undefined.
@import url('https://...')
Cannot read property 'isNull' of undefined
const stylus = require('stylus'); stylus(`@import url('https://fonts.googleapis.com/css?family=Raleway:300,400,500,700|Montserrat|Inconsolata:400,700&display=swap')`).deps();
It seems to be related to:
stylus/lib/visitor/deps-resolver.js
Line 113 in 59bc665
@css { @import url('https://fonts.googleapis.com/css?family=Raleway:300,400,500,700|Montserrat|Inconsolata:400,700&display=swap')`); }
That way Stylus doesn't compile it and the error is not thrown.
vitejs/vite#3984
The text was updated successfully, but these errors were encountered:
i also got this problem
Sorry, something went wrong.
@import
Successfully merging a pull request may close this issue.
When I try to import Google Fonts or any external URL via
@import url('https://...')
, it throws an error:Cannot read property 'isNull' of undefined
.Example:
It seems to be related to:
stylus/lib/visitor/deps-resolver.js
Line 113 in 59bc665
Workaround:
That way Stylus doesn't compile it and the error is not thrown.
The original issue:
vitejs/vite#3984
The text was updated successfully, but these errors were encountered: