WhitestormJS / react-whs

WhitestormJS React integration ⚛

Home Page:https://whsjs.readme.io/docs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Missing required loader

jarrodmedrano opened this issue · comments

ERROR in ./~/whs/src/components/cameras/OrthographicCamera.js
Module parse failed: C:\src\react-whs\node_modules\whs\src\components\cameras\OrthographicCamera.js Unexpected token (6:18)
You may need an appropriate loader to handle this file type.

I fixed this by removing exclude: /node_modules/, from the webpack configs.

@tacomoney Seems like it uses sources (uncompiled)

This still doesn't work from a clean install.

How are you setup, is there a repo somewhere? Suspect some config is incorrect

Yes I have a repo here (this works for me)
https://github.com/jarrodmedrano/react-whitestorm-js

I had to remove the exclude node_modules lines as well as install some babel plugins and lock the version numbers of npm packages. I'm not sure exactly where the snafu comes from but I had the same problem on mac and windows.

strange it works for me.

npm install
npm start

image

Yes it works after I changed all of those things. It doesn't work when I clone and install and start it from your repo.

Ah ok got it !

What we will do is upgrade a bunch of things. whs now uses rollup, which makes it much more lightweight. I spotted a few other issues with modules missing some deps. users should not have to install them manually.

thanks for pointing out the issues you faced.

No problem. Cool, looking forward to the upgrades.