solidjs-community / tsup-preset-solid

Preset for building your SolidJS packages with tsup.
MIT License
28 stars 2 forks source link

NotFoundError: Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node #8

Closed wakaztahir closed 12 months ago

wakaztahir commented 12 months ago

Error with a library built using tsup-preset-solid

When using the library error occurs If copy the library source code into project the error goes away The error only occurs if something that is stateful is on top

Here's a reproducer https://github.com/Qawaz/solid-start-issue

Library is built using tsup-preset-solid, You can consider that library only contains one file baseStyled which I've already included in the project If you make a package of that file the error occurs

I don't know where to report this, If this is not an issue with tsup-preset-solid and is an issue with something this preset relies on (esbuild-plugin-solid), I could report it further !

wakaztahir commented 12 months ago

esbuild-plugin-solid relies on babel-preset-solid I am going to report this to babel-preset-solid