browserify / browserify/commonjs-assert

Build failure on gatsby App because of object.assign not resolve in node_modules/assert

Open
#61 7 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
298
Forks
63
PR merge metrics
No merged PRs in 30d

Description

Working on Gatsby app and suddenly getting this issue, causing build fail:

Generating development JavaScript bundle failed

Can't resolve 'object.assign/polyfill' in 'C:\Home\ARK\Repos\shape-website-3\shape-website\website\node_modules\assert'

If you're trying to use a package make sure that 'object.assign/polyfill' is installed. If you're trying to use a local file make sure that the path is correct.

File: node_modules\assert\assert.js

Required urgent attention, please!

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the Gatsby development-bundle failure and inspect node_modules/assert/assert.js, focusing on its reference to object.assign/polyfill. Confirm the dependency-resolution behavior in a Gatsby build; done means the bundle completes without the reported missing-module error.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
build-system, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.