Background
We are developing a web component sdk using react-to-webcomponent. The sdk original use react & react-dom but we alias react using preact in our Vue application according to this doc.
Describe the bug
When aliasing react using the following alias in package.json
"react": "npm:@preact/compat",
"react-dom": "npm:@preact/compat",
the error prompt out
Module not found: Error: Package path ./client is not exported from package [my project path]/node_modules/react-dom (see exports field in [my project path]/node_modules/react-dom/package.json)
it works when using the following alias
"react": "link:node_modules/preact/compat",
"react-dom": "link:node_modules/preact/compat",
Seems compat in main repo has client.js exported but none in compat-alias-package
Background
We are developing a web component sdk using
react-to-webcomponent. The sdk original use react & react-dom but we alias react using preact in our Vue application according to this doc.Describe the bug
When aliasing react using the following alias in
package.jsonthe error prompt out
it works when using the following alias
Seems compat in main repo has
client.jsexported but none in compat-alias-package