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
Package module import not working #222
Comments
@NateBaldwinDesign did you add the package to your project? The first step in that documentation you mentioned says to install the package with |
Yes, I have it installed as documented. I am going to try a few other things to see if I can replicate the problem on a different computer to verify that it's not just some system issue. I have confirmed that it is not working properly on a new project as well as previous projects that have worked in the past. |
I think I found the problem. The files are getting named with the |
Hi, any progress on this? For me, the latest version that works is @adobe/leonardo-contrast-colors@1.0.0-alpha.13 |
Hello, any progress on this? |
As a temporary fix, you can use this command to install it via NPM. It works fine in TS now with this command.
This just create an NPM package from the main branch in the correct subfolder (Using the site https://gitpkg.vercel.app/) |
extensions being changed to Footnotes |
Bump :) same issue workaround is good but this is not a good sign for this library I stumbled upon |
I'm working to release a fix. I'll close this issue when I get it out. |
Any progress? |
Any update? 🙏 I'm using the 1.0.0-alpha.13 version but I would like to use the latest :) |
This has been fixed with the latest release. If any problems with the latest package persist, let me know. |
Description
When installing Leonardo into a new React project, basic imports fail to load and return an error.
Tried with both
create-react-app
andvite
with same results. Vite error report gave clearest possible cause of the issue:Steps to reproduce
yarn dev
/yarn start
)* as Leo
,{Color, Theme}
, etc) from@adobe/leonardo-contrast-colors
(as documented here)Expected behavior
Expect the package to be imported using the import statements here
Screenshots
Leonardo package and version
@adobe/leonardo-contrast-colors
version 1.0.0-alpha.17Environment
Additional context
The text was updated successfully, but these errors were encountered: