-
-
Notifications
You must be signed in to change notification settings - Fork 150
Bug with PostCSS #241
Comments
Apologies if this isn't a good fix. It works for me, but it's entirely possible there is a better solution. I seem to notice in older versions of the plugin, the css files has .css extensions and now they do not. Perhaps this was the source of the issue, or I am completely wrong and the files never had .css. Hope this helps. vuejs#241
Having a heck of time getting these builds to work. I feel like should work work much easier than this, lol. I mentioned this in the commit comment for my patch-1 branch. But if I use rollup-plugin-vue to create two output bundle files, like one for iife and one for es6, then the second pass fails. References
This happened after this commit, which throws an error if the compilation fails. There is probably a better way to fix this. I'm just not sure what the expected data type and/or value should be, or how to check to see if something should be omitted on the second pass. There is also issues when installing the plugin with NPM vs. Yarn. Yarn works, NPM doesn't until yarn installs. First time I've never had to use yarn to get something to work in npm. The reason for this is in the recent commit, vue-runtime-helpers is required. For some reason it doesn't get included. I updated node and npm to latest, so i think its a bug on their end because this errors goes when if I install my dev package with yarn.
|
I commited 6c5f920 but I think it's not the source of the error. I'm getting same error and it's originated from 'source-map' package. |
After some digging, I found that the problem is caused by a caching policy.
when it comes to second turn, I'm still reading the source codes and trying to figure out a solution. |
same problem here #239 |
Just checking back on this. This solved one of my issues, the source map. Thank you for that fix. I am going to update my branch with this fix because I still get one issue that is unrelated. I need to build my package with PostCSS, and without this code change, I can't get it to work. In my commit I added the following lines:
Without these lines of code, PostCSS doesn't handle the CSS from the vue component files and get the following error in a Bootstrap wrapping component. My rollup plugin config is above.
|
I made a long post yesterday here. It was partially correct. I did find one issue on my end, I was compiling with global Rollup which was a different version in my package. So some of what I posted changed once I updated, however the core issue was the same. Making a specific issue there, and will make a pull request later.
I'm still not 100% sure I am not doing something wrong. But it looks like this is a bug if I was using an old version of Rollup and it didn't fixed it, and same issue on the latest version. I was thinking this would be moot after I updated to 0.66.6, but this is still an issue. Anyone else get this?
Expanding on my comment here:
#207 (comment)
Original code from index.ts
My changed code, notice the
else if
.SampleComponent.vue
rollup.config.js
Expected behavior
My sample-component.css should be
Actual behavior
Without the line of code changed above, I get the following error:
The text was updated successfully, but these errors were encountered: