get a error about
/vercel/path0/node_modules/transformers/node_modules/uglify-js/tools/exports.js does not exist.
and i add this code
{ “postinstall”: “npm install uglify-js”}
in package.json but same error.
how can i fix this?
get a error about
/vercel/path0/node_modules/transformers/node_modules/uglify-js/tools/exports.js does not exist.
and i add this code
{ “postinstall”: “npm install uglify-js”}
in package.json but same error.
how can i fix this?
Hi, @dev-cmkim! Welcome to the Community ![]()
Manually installing packages in a postinstall script is generally not recommended. Could you try:
package.json.npm cache and node_modules, then reinstall your dependencies:npm cache clean --force
rm -rf node_modules
rm package-lock.json
npm install
uglify-js as a dev dependency:npm install --save-dev uglify-js
Let us know how you get on!
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.