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

node version restriction #483

Open
olehmisar opened this issue Mar 6, 2024 · 7 comments
Open

node version restriction #483

olehmisar opened this issue Mar 6, 2024 · 7 comments
Labels
help wanted Extra attention is needed

Comments

@olehmisar
Copy link

image
@olehmisar
Copy link
Author

Why does a css library that runs in browser and and doesn't even export any js restrict node version?

@olehmisar
Copy link
Author

Not sure where the 20.11.1 version comes from, as version 18 is specified in the package.json

"node": ">=18.19.0"

Anyway, it prevents me from deploying on vercel.

@lucaslarroche
Copy link
Member

One of the devDependencies, postcss-cli, requires node >=18.
What is the best practice?
Should we remove any node version requirement?

@lucaslarroche lucaslarroche added the help wanted Extra attention is needed label Mar 7, 2024
@olehmisar
Copy link
Author

IDK about the best practice, but there is no need for "engines" field in package.json because your package does not run on node.js (it does not even run js at all).

However I am not sure if removing "engines" from package.json will fix the vercel deployment issue. Could you please publish a @next version or something like that, so I can test it before you publish a new patch version?

@lucaslarroche
Copy link
Member

@olehmisar can you try with:

"@picocss/pico": "github:picocss/pico#remove-node-engines"

Thanks for testing

@olehmisar
Copy link
Author

works nicely. No error on node 18

@gary600
Copy link

gary600 commented Mar 13, 2024

Same issue happens on latest release on Cloudflare Pages (as a warning rather than an error, but still annoying), so this change would be appreciated since the reason for including Pico is just for the stylesheets.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants