Closed daz4126 closed 10 months ago
a bug with Parcel? Rollup has zero issues with proper ESM exports, so I have not much else to say about this issue.
to clarify, domconstants declares exports in the most modern/standard way and constants is part of such exports: https://github.com/WebReflection/domconstants/blob/master/package.json#L24-L28
if Parcel is outdated or incapable to deal with the suggested way to export modules I am afraid there's not much I can do here, hence closing this issue, but feel free to ask more or write updates around it.
Thanks. It probably is a problem with parcel. I’ll try using rollup instead.
Just got this error when trying to build with Parcel:
🚨 Build failed.
@parcel/core: Failed to resolve 'domconstants/constants' from './node_modules/uhtml/esm/creator.js'
node_modules/uhtml/esm/creator.js:1:30
@parcel/resolver-default: Cannot load file './constants' from module 'domconstants'
Any idea why that might be happening?