noflo / noflo-ui

NoFlo Development Environment
https://app.flowhub.io
MIT License
764 stars 174 forks source link

Can't build after pnpm i #1384

Open linonetwo opened 1 year ago

linonetwo commented 1 year ago

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 commented 1 year ago

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 commented 12 months ago

@bergie Is anyone there?