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

Examples erroring with latest package versions #430

Open
blowsie opened this issue Feb 4, 2021 · 2 comments
Open

Examples erroring with latest package versions #430

blowsie opened this issue Feb 4, 2021 · 2 comments

Comments

@blowsie
Copy link

blowsie commented Feb 4, 2021

Version

5.0.0

Reproduction link

https://codesandbox.io/s/elastic-mcnulty-sr0h1?file=/package.json

Steps to reproduce

What is expected?

Styles to be built properly

What is actually happening?

Styles fail

1:
2: h1 {
       ^
3:   color: red;
4: }
Error: Identifier directly after number (Note that you need plugins to import files that are not JavaScript)
    at error (C:\Projects\ui\node_modules\rollup\dist\shared\rollup.js:5240:30)
    at Module.error (C:\Projects\ui\node_modules\rollup\dist\shared\rollup.js:9932:16)
    at tryParse (C:\Projects\ui\node_modules\rollup\dist\shared\rollup.js:9791:23)
    at Module.setSource (C:\Projects\ui\node_modules\rollup\dist\shared\rollup.js:10239:19)
    at ModuleLoader.addModuleSource (C:\Projects\ui\node_modules\rollup\dist\shared\rollup.js:18524:20)
@blowsie blowsie changed the title Examples not Examples erroring with latest package versions Feb 4, 2021
@ckvv
Copy link

ckvv commented Jun 4, 2021

Why is no one responding after so long?

@derrickb
Copy link

A way to mitigate this error is to have the PostCSS or CSS plugins in your plugin array. Hope this gets cleared up so this dependency is no longer necessary.

import vue from 'rollup-plugin-vue';
import css from 'rollup-plugin-css-only';
...
plugins: [
  vue(),
  css()
]

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants