magento / magento/baler

Require JS not loading

Open
#32 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

question
Dominant language
JavaScript
Stars
176
Forks
28
PR merge metrics
No merged PRs in 30d

Description

After bundling using `bin/baler build` getting **_TypeError: require is not a function_** error

attached error log for your reference.
- [require_js error.log](https://github.com/magento/baler/files/3983443/require_js.error.log)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the failure with `bin/baler build` and review the attached `require_js error.log`. Trace how the generated bundle handles `require` and identify why it is not callable in the bundled output. Done means the build completes and the resulting JavaScript loads without the reported TypeError.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.