CharlieMcVicker / mathjax-react

React Component Library for MathJax
33 stars 14 forks source link

demos not working #9

Open codekiln opened 3 years ago

codekiln commented 3 years ago

I'm trying to get the demos to render locally. I followed all the instructions at Developer Setup, but when a run yarn start in the typescript-examples/ directory, I get the following when I open the served project:

TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined
    at validateString (internal/validators.js:117:11)
    at Object.join (path.js:1039:7)
    at noopServiceWorkerMiddleware (/Users/pnore/dev/mathjax-react/typescript-examples/node_modules/react-dev-utils/noopServiceWorkerMiddleware.js:14:26)
    at Layer.handle [as handle_request] (/Users/pnore/dev/mathjax-react/typescript-examples/node_modules/express/lib/router/layer.js:95:5)
    at trim_prefix (/Users/pnore/dev/mathjax-react/typescript-examples/node_modules/express/lib/router/index.js:317:13)
    at /Users/pnore/dev/mathjax-react/typescript-examples/node_modules/express/lib/router/index.js:284:7
    at Function.process_params (/Users/pnore/dev/mathjax-react/typescript-examples/node_modules/express/lib/router/index.js:335:12)
    at next (/Users/pnore/dev/mathjax-react/typescript-examples/node_modules/express/lib/router/index.js:275:10)
    at launchEditorMiddleware (/Users/pnore/dev/mathjax-react/typescript-examples/node_modules/react-dev-utils/errorOverlayMiddleware.js:20:7)
    at Layer.handle [as handle_request] (/Users/pnore/dev/mathjax-react/typescript-examples/node_modules/express/lib/router/layer.js:95:5)
    at trim_prefix (/Users/pnore/dev/mathjax-react/typescript-examples/node_modules/express/lib/router/index.js:317:13)
    at /Users/pnore/dev/mathjax-react/typescript-examples/node_modules/express/lib/router/index.js:284:7
    at Function.process_params (/Users/pnore/dev/mathjax-react/typescript-examples/node_modules/express/lib/router/index.js:335:12)
    at next (/Users/pnore/dev/mathjax-react/typescript-examples/node_modules/express/lib/router/index.js:275:10)
    at handleWebpackInternalMiddleware (/Users/pnore/dev/mathjax-react/typescript-examples/node_modules/react-dev-utils/evalSourceMapMiddleware.js:42:7)
    at Layer.handle [as handle_request] (/Users/pnore/dev/mathjax-react/typescript-examples/node_modules/express/lib/router/layer.js:95:5)

Do you have an environment variable constant which I need to setup in order to get this to build locally?