-
-
Notifications
You must be signed in to change notification settings - Fork 133
New issue
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
Stylus import statement breaks built-in bundler #1157
Comments
It looks like you hit a postcss source map bug. We have encountered this with other setup with postcss. Currently, you can bypass this issue by disabling source map with |
Looks like this one is different from the other postcss issue. I can remove postcss but hit the the same issue. Different from scss (which use I will get back to you with a fix. |
I'm submitting a bug report
Local aurelia-cli v1.2.2
Please tell us about your environment:
Operating System:
OSX 10.x
Node Version:
v12.6.0
NPM Version:
6.13.1
Browser:
N/A
Language:
TypeScript 3.7.3
Loader/bundler:
SystemJS | RequireJS
Behavior:
Use of stylus
@import
statements appear to break the built-in bundler.In this bare-bones sample project, in the file app.styl, if you add the line
@import 'mixins.styl';
you will get the following error.To reproduce:
If you remove the @import line from app.styl then the project will build and run.
I am experiencing this same issue in multiple versions of the cli and with multiple projects that I've set up to isolate the problem.
Note
This sample project project demonstrates what I think is a related issue, which is that the bundler will try to bundle @types files, if imported into a
.ts
file using an import statement. The workaround is to list the type in the tsconfigtypes
array. I didn't see this issue covered in the docs.The text was updated successfully, but these errors were encountered: