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

npm run prod fails #117

Closed
kyle-cyberprairie opened this issue Jun 18, 2024 · 2 comments
Closed

npm run prod fails #117

kyle-cyberprairie opened this issue Jun 18, 2024 · 2 comments

Comments

@kyle-cyberprairie
Copy link

I can run npm run prod on my local machine, but on my staging server I get this error:

/home/forge/staging.mywebsite.com/mywebsite2024/node_modules/tailwindcss/node_modules/postcss-selector-parser/dist/selectors/attribute.js:18
var warnOfDeprecatedValueAssignment = deprecate(function () {}, "Assigning an attribute a value containing characters that might need to be escaped is deprecated. " + "Call attribute.setValue() instead.");
                                      ^

TypeError: deprecate is not a function
    at Object.<anonymous> (/home/forge/staging.mywebsite.com/mywebsite2024/node_modules/tailwindcss/node_modules/postcss-selector-parser/dist/selectors/attribute.js:18:39)
    at Module._compile (node:internal/modules/cjs/loader:1364:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1422:10)
    at Module.load (node:internal/modules/cjs/loader:1203:32)
    at Module._load (node:internal/modules/cjs/loader:1019:12)
    at Module.require (node:internal/modules/cjs/loader:1231:19)
    at require (node:internal/modules/helpers:177:18)
    at Object.<anonymous> (/home/forge/staging.mywebsite.com/mywebsite2024/node_modules/tailwindcss/node_modules/postcss-selector-parser/dist/parser.js:13:42)
    at Module._compile (node:internal/modules/cjs/loader:1364:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1422:10)

Node.js v18.20.3
ERROR: "production:tailwind:frontend" exited with 1.

node and npm are the same version on my local, and they're even both ubuntu.

@gregsullivan
Copy link
Owner

Hello—Thanks for posting this!

Do you have a repository you can share?

This older GitHub issue describes something very similar to what is happening to you. Is there any other overlap between what you're doing and the discussed problem?

@gregsullivan
Copy link
Owner

I'm going to close this. I'd be happy to reopen and to discuss this further if you're able to provide additional details about your issue. Thanks again!

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

No branches or pull requests

2 participants