Skip to content

injectGlobalPaths causes error on rendering #33

Description

@sidharthramesh

Everything works fine without it, but adding injectGlobalPaths to the PostCSS config causes this error:

index-78323a20.js:2706 ReferenceError: Cannot access 'globalCss' before initialization
    at my-component.entry.js:7 undefined
consoleError @ index-78323a20.js:2706
index-78323a20.js:1949 Uncaught (in promise) Error: Constructor for "my-component#undefined" was not found
    at initializeComponent (index-78323a20.js:1949)

I am trying to use tailwindcss with PostCSS. The error can be reproduced with this branch. Adding the injectGlobalPaths always fails. Seems like some variables aren't defined on the client side.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions