Docz: Error with SockJs on production build

Created on 2 Feb 2019  路  1Comment  路  Source: doczjs/docz

Bug Report

Describe the bug

When running build, there are two issues:

  • The src paths generated in the html file can't be found (but I can fix it manually inserting a ./ before each path.
  • When opening the html file in the browser, I got an error as the screen bellow shows.

To Reproduce

  1. Run build
  2. Fix paths on index.html
  3. Open in the browser
  4. See error

image

Environment

  • OS: Windows 10
  • Node/npm version: Node 10.15.1/yarn 1.13.0

Additional context/Screenshots
image

Most helpful comment

For some reason built site still includes react-dev-utils/webpackHotDevClient causing SockJS to run and generate errors. This happens to me with v0.13.7

>All comments

For some reason built site still includes react-dev-utils/webpackHotDevClient causing SockJS to run and generate errors. This happens to me with v0.13.7

Was this page helpful?
0 / 5 - 0 ratings

Related issues

w0wka91 picture w0wka91  路  3Comments

mariusespejo picture mariusespejo  路  3Comments

ssylvia picture ssylvia  路  3Comments

hayk94 picture hayk94  路  3Comments

mquandalle picture mquandalle  路  3Comments