koba04 / koba04/closure-webpack-example

goog is not defined

Open
#3 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
0
Forks
1
PR merge metrics
No merged PRs in 30d

Description

Hi Toru,

I'm basing our closure webpack project from your example (thank you, btw). I'm currently running into an issue where everything works fine when mode is set to `NONE`, but breaks when I set it to `STANDARD`. I get the following error:

```
Uncaught ReferenceError: goog is not defined
at Object. (app.js:2742)
at __webpack_require__
```

Any idea of what it might be? My [webpack config is extremely light](https://gist.github.com/jorgedavila25/73e6c1d631a78e2f5c33300da808f0f9). The only thing I changed from your `package.json` example was the `build:webpack` script from `"webpack -p --env production"` to `"./node_modules/.bin/webpack --env=production"`

Any help would be awesome!! Thanks

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by comparing the linked webpack config with the package.json example, especially the build script and the STANDARD mode setting. Reproduce the build and inspect app.js around line 2742, then confirm that the generated app runs in STANDARD mode without the `goog is not defined` error.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, webpack
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.