Closed jdhiro closed 3 years ago
This is strange, we are testing on Node v14 with imports.
Can you send me some details on your system and exact Node version number – will try to reproduce...
Also, double check that node_modules/$
exists. It's deleted every time you run npm install
rather than npm ci
.
I've got a PR in #21 as a partial fix for that specific issue.
@janniks I'm not yet sure what changed my side, but it seems to be working fine in imports now. I did uninstall and reinstall basetag when I was having issues even with require imports.
I'm currently running v14.15.0
Also, double check that
node_modules/$
exists. It's deleted every time you runnpm install
rather thannpm ci
.
That's what led me to do the uninstall/reinstall. Thank you!
For reasons, I'm not clear on yet, this does not seem to work with ES6 imports on Node 14.
For example, this does not work:
import db from '$/lib/db.js'
But this does:
const db = require('$/lib/db')
The resulting error looks like this:
At a high level, it looks like Node might be resolving packages for an import in a completely different fashion, perhaps making basetag incompatible. Or I'm missing something.