Closed justinvandenberg closed 2 years ago
It seems that your use of module-alias
clashes with the filename aliasing in solid-register. There are two ways to go about that; 1. you could add the required paths to the _moduleAliases
-config or 2. use node --conditions browser node_modules/.bin/uvu -r module-alias/register -r solid-register
instead of running uvu
directly.
Please tell me if one of these solutions work for you and I will document the issue in the README.
@atk Thank you! The second solution worked for me. I did have to install @babel/plugin-transform-runtime
though.
So, my .babelrc
looks like this:
{
"env": {
"test": {
"plugins": ["@babel/plugin-transform-runtime"]
}
},
"presets": ["babel-preset-solid"]
}
Please accept my apology for the lacking documentation.
Node version:
16.11.0
Script:
uvu -r module-alias/register -r solid-register
Relevant config from
package.json
:Error: