Closed Shackless closed 5 years ago
I’ve got this error with nodejs 10.5. Upgrade to 11.8 to solve it
Thanks, that fixed it!
yeah, this is relatively new in V8, so it'll only work with the current Node branch, and not LTS.
I should probably update that for LTS compatibility.
Since the stats module is already using lodash, a quick way to fix this problem for Node < 11 is to just change the script var's assignment to look like this:
const scripts: string[] = lodash.flatten<string>(
initial.siblings
.map((sibling: any) =>
this.raw.chunks.find((chunk: any) => chunk.id === sibling)
)
.map((sibling: any) => sibling.files)
.concat(initial.files))
.filter((file: string) => file.endsWith(".js"))
.map((file: string) => `/${file}`);
With the latest release, I get the following error after trying to load the start page:
To reproduce the error, just clone the repo, run
npm i
andnpm start
. Then navigate to http://localhost:3000.