altgifted/babel-plugin-transform-scss

Cannot find module 'uuid'

Opened this issue · 0 comments

I have Project A which has dependency babel-plugin-transform-scss. And a Project B with has dependency Project A.

Project B fires a postinstall script of Project A, which uses babel-plugin-transform-scss.

Then this error happens.

npm ERR! Error: [BABEL]: Cannot find module 'uuid'
npm ERR! Require stack:
npm ERR! - /home/foo/development/foo/frontend/node_modules/babel-plugin-transform-scss/lib/index.js

Happens on Project B which is a new Next.js React 18 installation, which has no direct or indirect uuid dependency.

Did not happen on a Project B with React 17 which had react-scripts@5.0.1, which had an indirect uuid dependency.

Should just uuid be added as dependency in babel-plugin-transform-scss's package.json?