-
-
Notifications
You must be signed in to change notification settings - Fork 148
Error: Unexpected token #209
Comments
If you use css: false, then you need a plugin to handle css. Use rollup-plugin-css-only. |
But I face the same problem as #204 and ezolenko/rollup-plugin-typescript2#78 if I use Anyway, that isn't related to this issue (#209). You can close it now. It should be great if you can reopen #204. (Or I should raise new issue?) (Or it's |
rollup-plugin-typescript2 tries to read contents from the file path which in our case has a query param on it. |
Thank you very much. It's clear. So sad that
I have no idea what I should do. 😅 |
|
is this resolved? |
The issue is being tracked at ezolenko/rollup-plugin-typescript2#78 |
Hi, I had such a error.
Package rollup-plugin-postcss helped me. postcss({
extract: true
}),
vue({
css: false
}), But I'm not sure that styles are not included from js-bundle because I saw styles in my bundle: If I put the @znck Can you clarify, please? |
When rollup-plugin-vue/src/index.ts Lines 413 to 432 in 0b74c4a
When |
@znck Thanks for the clarification. I thought the styles are generally removed from the bundle if Configs in which I did not set postcss I had to generate the same style file for each config. postcss({
// same as true but path where to save
extract: join(distDir, 'main.css'),
minimize: true
}), That is somehow stupid, but it works. |
Expected behavior
Bundle without error.
Actual behavior
Get Error: Unexpected token
Steps to reproduce the behavior
I've created a repo to repro this issue.
git clone https://github.com/gluons/rollup-plugin-vue-issue-209.git cd rollup-plugin-vue-issue-209 yarn yarn build
I try to create Vue library with Pug + TypeScript + SCSS and bundle with
rollup-plugin-vue
but this issue stop me. 😥I've tried with
rollup-plugin-typescript
androllup-plugin-typescript2
but it doesn't seem to work.I've created multiple Vue components for testing this issue but all of them get this error.
script
script
and Pug astemplate
script
and SCSS asstyle
script
, Pug astemplate
and SCSS asstyle
The text was updated successfully, but these errors were encountered: