Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

(WebPack) Browser Runtime Exception When Running In Production Mode #82

Closed
ISNIT0 opened this issue Jan 12, 2018 · 3 comments
Closed

(WebPack) Browser Runtime Exception When Running In Production Mode #82

ISNIT0 opened this issue Jan 12, 2018 · 3 comments

Comments

@ISNIT0
Copy link

ISNIT0 commented Jan 12, 2018

(Really loving Sapper, etc.)

package.json:
image

When building and running in production mode:

NODE_ENV=production npm run build && NODE_ENV=production node server.js

I get an exception thrown on page load (attached and pictured) Sapper-Production-Crash.txt
image

It seems to be related to the "ExtractTextPlugin":
image

When manually disabled from the client webpack config the issues disappear.

Removing Component CSS also 'fixes' the issue.

Un-minified exception:
image
Sapper-Production-Crash-unmin.txt

Unfortunately I don't have much time to look into it further.
Hope this info is helpful.

@Rich-Harris
Copy link
Member

Can you try with Sapper 0.4? It includes this PR which appears to be the same issue

@ISNIT0
Copy link
Author

ISNIT0 commented Jan 15, 2018

Will do either this evening, or tomorrow evening.

@ISNIT0
Copy link
Author

ISNIT0 commented Mar 9, 2018

Can confirm that this has fixed since I last tried (though there seem to be other deployment issues).
I'll close this.

@ISNIT0 ISNIT0 closed this as completed Mar 9, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants