Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

when I use swc tabs components in the uxp, after I build, there are some errrors. #96

Open
no13bus opened this issue Jun 9, 2024 · 0 comments

Comments

@no13bus
Copy link

no13bus commented Jun 9, 2024

error is like this:

ERROR in ./node_modules/@spectrum-web-components/tabs/sp-tab-panel.dev.js 3:0-84
Module not found: Error: Package path ./src/define-element.js is not exported from package /Users/qihuijia/Downloads/uxp-photoshop-plugin-samples-main/swc-uxp-starter/node_modules/@spectrum-web-components/base (see exports field in /Users/qihuijia/Downloads/uxp-photoshop-plugin-samples-main/swc-uxp-starter/node_modules/@spectrum-web-components/base/package.json)
@ ./src/index.js 18:0-55

ERROR in ./node_modules/@spectrum-web-components/tabs/sp-tab.dev.js 3:0-84
Module not found: Error: Package path ./src/define-element.js is not exported from package /Users/qihuijia/Downloads/uxp-photoshop-plugin-samples-main/swc-uxp-starter/node_modules/@spectrum-web-components/base (see exports field in /Users/qihuijia/Downloads/uxp-photoshop-plugin-samples-main/swc-uxp-starter/node_modules/@spectrum-web-components/base/package.json)
@ ./src/index.js 17:0-49

ERROR in ./node_modules/@spectrum-web-components/tabs/sp-tabs.dev.js 3:0-84
Module not found: Error: Package path ./src/define-element.js is not exported from package /Users/qihuijia/Downloads/uxp-photoshop-plugin-samples-main/swc-uxp-starter/node_modules/@spectrum-web-components/base (see exports field in /Users/qihuijia/Downloads/uxp-photoshop-plugin-samples-main/swc-uxp-starter/node_modules/@spectrum-web-components/base/package.json)
@ ./src/index.js 16:0-50

ERROR in ./node_modules/@spectrum-web-components/tabs/src/Tab.dev.js 21:0-76
Module not found: Error: Package path ./src/random-id.js is not exported from package /Users/qihuijia/Downloads/uxp-photoshop-plugin-samples-main/swc-uxp-starter/node_modules/@spectrum-web-components/shared (see exports field in /Users/qihuijia/Downloads/uxp-photoshop-plugin-samples-main/swc-uxp-starter/node_modules/@spectrum-web-components/shared/package.json)
@ ./node_modules/@spectrum-web-components/tabs/sp-tab.dev.js 2:0-39 4:24-27
@ ./src/index.js 17:0-49

ERROR in ./node_modules/@spectrum-web-components/tabs/src/TabPanel.dev.js 17:0-76
Module not found: Error: Package path ./src/random-id.js is not exported from package /Users/qihuijia/Downloads/uxp-photoshop-plugin-samples-main/swc-uxp-starter/node_modules/@spectrum-web-components/shared (see exports field in /Users/qihuijia/Downloads/uxp-photoshop-plugin-samples-main/swc-uxp-starter/node_modules/@spectrum-web-components/shared/package.json)
@ ./node_modules/@spectrum-web-components/tabs/sp-tab-panel.dev.js 2:0-49 4:30-38
@ ./src/index.js 18:0-55

webpack 5.88.2 compiled with 5 errors in 211 ms
error Command failed with exit code 1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant