-
Notifications
You must be signed in to change notification settings - Fork 109
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
Module not found: Error: Can't resolve '@adobe/leonardo-contrast-colors' #173
Comments
@skylerknight "main": "./dist/index.js",
"exports": {
".": {
"default": "./dist/index.js"
}
}, Upd: Nope, gives There is @NateBaldwinDesign It became broken after PR #166 had been merged |
@elyulka Aha,thanks for the info |
what's the best way around so far? Backing to 1.0.0-alpha.13 gives me this #175. I might be missing something about how to use the package |
Problem is still there |
Description
Unable to use package. Keep getting "Module not found" or "No exported member" errors.
I have tried both npm and yarn, with CRA and vite.
Steps to reproduce
Initiate a basic application:
npx create-react-app learn-leo
Install package
npm i @adobe/leonardo-contrast-colors
Import Leonardo Package:
Run application:
npm start
Resulting error:
Expected behavior
Expected to be able to import and use the leonardo package.
Screenshots
Leonardo package and version
@leonardo-contrast-colors version: ^1.0.0-alpha.16
Environment
OS: MacOS: 12.5.1
Browseer: Version 104.0.5112.101 (Official Build) (arm64)
Additional context
It appears that there may be something wrong with the exposed modules/files for export.
The package may have incorrect main/module/exports specified in its package.json.
UPDATE: I've tested with Version
1.0.0-alpha.13
and I am no longer seeing this error. It must have something to do with the latest release.The text was updated successfully, but these errors were encountered: