Skip to content

Can't build after pnpm i #1384

Open
Open
@linonetwo

Description

I think npm i will work, but when pnpm i

> [email protected] 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/[email protected][email protected]/node_modules/workbox-webpack-plugin/build/generate-sw.js
>> - /Users/linonetwo/Desktop/repo/noflo-ui/node_modules/.pnpm/[email protected][email protected]/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/[email protected]/node_modules/grunt/lib/grunt/task.js
>> - /Users/linonetwo/Desktop/repo/noflo-ui/node_modules/.pnpm/[email protected]/node_modules/grunt/lib/grunt.js
>> - /Users/linonetwo/Desktop/repo/noflo-ui/node_modules/.pnpm/[email protected]/node_modules/grunt-cli/bin/grunt
>> - /Users/linonetwo/Desktop/repo/noflo-ui/node_modules/.pnpm/[email protected]/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...

Activity

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

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions