Skip to content
This repository has been archived by the owner on Jan 27, 2023. It is now read-only.

Unexpected character '@' running rollup build with @open-wc/building-rollup 2.0.1 #3

Open
auggod opened this issue Jun 21, 2022 · 0 comments · May be fixed by #2
Open

Unexpected character '@' running rollup build with @open-wc/building-rollup 2.0.1 #3

auggod opened this issue Jun 21, 2022 · 0 comments · May be fixed by #2
Assignees
Labels
bug Something isn't working

Comments

@auggod
Copy link
Member

auggod commented Jun 21, 2022

Issue is related to #2.

I'm getting the following error when running npm run build.

[!] (plugin rollup-plugin-import-meta-assets) SyntaxError: Unexpected character '@' (1:0) src/style/main.module.css (1:0) SyntaxError: Unexpected character '@' (1:0) at Parser.pp$4.raise (/home/auggod/resonate/stream-pwa-lit-template/node_modules/rollup/dist/shared/rollup.js:19740:13) at Parser.pp.getTokenFromCode (/home/auggod/resonate/stream-pwa-lit-template/node_modules/rollup/dist/shared/rollup.js:21402:8) at Parser.pp.readToken (/home/auggod/resonate/stream-pwa-lit-template/node_modules/rollup/dist/shared/rollup.js:21089:15) at Parser.pp.nextToken (/home/auggod/resonate/stream-pwa-lit-template/node_modules/rollup/dist/shared/rollup.js:21080:15) at Parser.parse (/home/auggod/resonate/stream-pwa-lit-template/node_modules/rollup/dist/shared/rollup.js:16862:8) at Function.parse (/home/auggod/resonate/stream-pwa-lit-template/node_modules/rollup/dist/shared/rollup.js:16913:35) at Graph.contextParse (/home/auggod/resonate/stream-pwa-lit-template/node_modules/rollup/dist/shared/rollup.js:23017:38) at Object.transform (/home/auggod/resonate/stream-pwa-lit-template/node_modules/@web/rollup-plugin-import-meta-assets/src/rollup-plugin-import-meta-assets.js:65:24) at /home/auggod/resonate/stream-pwa-lit-template/node_modules/rollup/dist/shared/rollup.js:22870:37

To reproduce this, clone #2 and install version 2.0.1 of '@open-wc/building-rollup'. I had to downgrade this package to 1.10.0.

@auggod auggod added the bug Something isn't working label Jun 21, 2022
@auggod auggod self-assigned this Jun 21, 2022
@auggod auggod linked a pull request Jun 21, 2022 that will close this issue
@auggod auggod changed the title Unexpected character '@' running rollup build with @open-wc/building-rollup Unexpected character '@' running rollup build with @open-wc/building-rollup 2.0.1 Jun 21, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant