Skip to content
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

Stencil doesn't work with linaria rollup plugin #2622

Closed
junebugfix opened this issue Aug 8, 2020 · 1 comment
Closed

Stencil doesn't work with linaria rollup plugin #2622

junebugfix opened this issue Aug 8, 2020 · 1 comment
Labels

Comments

@junebugfix
Copy link

Stencil version:

 @stencil/core@1.17.3

I'm submitting a:

[x] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://stencil-worldwide.herokuapp.com/ or https://forum.ionicframework.com/

Current behavior:

Stencil breaks when trying to use the linaria css-in-js rollup plugin

Expected behavior:

Stencil should be able to work with the linaria rollup plugin

Steps to reproduce:

npm init stencil (app)
npm install linaria
add to stencil.config.js:

import linaria from 'linaria/rollup'
...
rollupPlugins: {
    after: [ linaria() ]
}

add to app-home.tsx:

import { css } from 'linaria'

const coralBackground = css`
  background-color: coral;
`
...
<div class={coralBackground}>hello :)</div>

Other information:

npm start errors with:

[ ERROR ]  Rollup: Plugin Error
           Cannot read property 'includes' of undefined (plugin: extTransformsPlugin,
           transform)

[33:17.8]  rebuild failed, watching for changes... in 709 ms
@adamdbradley
Copy link
Contributor

Should be fixed in the next release, thanks

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

No branches or pull requests

2 participants