lxsmnsyc / solid-styled

Reactive stylesheets for SolidJS
MIT License
173 stars 10 forks source link

`Uncaught Error: Missing StyleRegistry` #2

Closed trusktr closed 1 year ago

trusktr commented 2 years ago

I have an app that uses solid-app-router (maybe that has to do with it), and I get that error. Working on a repro...

trusktr commented 2 years ago

Repro: https://github.com/trusktr/solid-styled/tree/solid-styled-issue-2

Unfortunately this simple reproduction attempt doesn't yet reproduce the issue

To run, "type": "module" must be added to the babel plugin inside node_modules after npm install.

trusktr commented 2 years ago

steps to run:

git clone git@github.com:trusktr/solid-styled.git
cd solid-styled/
git checkout solid-styled-issue-2
npm i && npm run build

It will end with the error:

SyntaxError: Cannot use import statement outside a module
    at Object.compileFunction (node:vm:353:18)
    at wrapSafe (node:internal/modules/cjs/loader:1040:15)
...

Then

and now the build passes, but unfortunately this simple example doesn't yet reproduce the Missing StyleRegistry error.

lxsmnsyc commented 1 year ago

This should probably be solved now?

lxsmnsyc commented 1 year ago

Since there's lack of updates, and I positively believe this has been already fixed, I'll close this issue.