-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Error: Package exports for '.\colorette' do not define a valid '.' target #49
Comments
@abhichatbot Could you create a repo so I can reproduce this? Also, make sure this is not a dupe of #48. |
Closing due to lack of activity. And this is most likely a duple of #48. 👋 |
I just got this error in Travis. Here's my package.json
Here's main part of my Travis yml.
Some error logs in Travis
|
Changed to Node v12 and it's all good now. 😅
Actually, maybe the error occurs with 13.0.1 only. |
Yes, that's correct. You may also upgrade to >=14. |
This is happening for me on node version 12.4.1 |
@isochronous Are you sure? That doesn't seem to be a valid Node version. https://nodejs.org/dist/v12.4.1 |
My bad, missed a 1, it's 12.14.1 |
For the time being I've just reverted to an earlier version of the package requiring colorette, which in turn requires a version of colorette that doesn't exhibit the same issue. |
Just tested it with 12.14.1 and it's working. This must be an issue with that package or your configuration. What package is that? |
As far as I can tell, it's autoprefixer. It's hard to tell for sure because the only place the error occurs is on a remote build agent that doesn't provide very detailed logs. |
@isochronous Make sure you're not in fact using Node 13. It does happen: postcss/autoprefixer#1352, postcss/autoprefixer#1353 (comment) |
I mean, I'm definitely not according to nvm |
@isochronous Did you try? I speculate the issue is in your project or your environment, and not autoprefixer. I've run out of ideas—sorry! 😅 |
Yeah, I'm pretty sure there's something screwed up in the environment as well - last couple of builds it's told me it can't find autoprefixer on npm -_- Thanks for trying though :) |
So, just to update, we had the same exact issue happen on node 12.14.1 (verified by using |
@isochronous By creating an empty project using 12.14.1, importing colorette and trying something like |
The problem occurs on install, so I don't think that would work. I'm seriously confused as to WTF is going on here. Like I said though, it works on a different version of node, so it's NBD, just thought you might be interested to hear the resolution. |
Definitely. Thank you for sharing it! |
Had the same issue today with version 13.0.1. After updating node to 14.9 this was resolved |
Installed with material-ui but not able to compile due to this.
The text was updated successfully, but these errors were encountered: