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

Can't build after pnpm i #1384

Open
linonetwo opened this issue Jul 1, 2023 · 2 comments
Open

Can't build after pnpm i #1384

linonetwo opened this issue Jul 1, 2023 · 2 comments

Comments

@linonetwo
Copy link

linonetwo commented Jul 1, 2023

I think npm i will work, but when pnpm i

> noflo-ui@0.29.1 build /Users/linonetwo/Desktop/repo/noflo-ui
> grunt build

Loading "Gruntfile.js" tasks...ERROR
>> Error: Cannot find module 'workbox-build/build/options/schema/webpack-generate-sw'
>> Require stack:
>> - /Users/linonetwo/Desktop/repo/noflo-ui/node_modules/.pnpm/workbox-webpack-plugin@6.1.1_webpack@4.46.0/node_modules/workbox-webpack-plugin/build/generate-sw.js
>> - /Users/linonetwo/Desktop/repo/noflo-ui/node_modules/.pnpm/workbox-webpack-plugin@6.1.1_webpack@4.46.0/node_modules/workbox-webpack-plugin/build/index.js
>> - /Users/linonetwo/Desktop/repo/noflo-ui/webpack.config.js
>> - /Users/linonetwo/Desktop/repo/noflo-ui/Gruntfile.js
>> - /Users/linonetwo/Desktop/repo/noflo-ui/node_modules/.pnpm/grunt@1.0.1/node_modules/grunt/lib/grunt/task.js
>> - /Users/linonetwo/Desktop/repo/noflo-ui/node_modules/.pnpm/grunt@1.0.1/node_modules/grunt/lib/grunt.js
>> - /Users/linonetwo/Desktop/repo/noflo-ui/node_modules/.pnpm/grunt-cli@1.2.0/node_modules/grunt-cli/bin/grunt
>> - /Users/linonetwo/Desktop/repo/noflo-ui/node_modules/.pnpm/grunt@1.0.1/node_modules/grunt/bin/grunt
Warning: Task "build" not found. Use --force to continue.

If workbox-build not in package.json , pnpm won't install it. I think maybe this is due to Gruntfile? This seem to be a very old thing before I start coding...

@linonetwo
Copy link
Author

webpack too

> noflo-ui@0.29.1 dev /Users/linonetwo/Desktop/repo/noflo-ui
> webpack serve

[webpack-cli] Unable to load '@webpack-cli/serve' command
[webpack-cli] TypeError: options.forEach is not a function
    at WebpackCLI.makeCommand (/Users/linonetwo/Desktop/repo/noflo-ui/node_modules/.pnpm/webpack-cli@4.5.0_webpack-dev-server@3.11.2_webpack@4.46.0/node_modules/webpack-cli/lib/webpack-cli.js:108:21)

@linonetwo
Copy link
Author

@bergie Is anyone there?

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

No branches or pull requests

1 participant