Error when using the react boilerplate v3.4.0 with structor 2.1.7
when access localhost:2222/structor
server side has the following error:
TypeError: d.getErrors is not a function
@xyx2011 could you please write down steps to reproduce the error?
I just got the same error and I followed the steps on described on the readme of react-boilerplate and then structor. Note that I am running on Windows 7
React boiler plate:
Clone this repo using git clone --depth=1 https://github.com/react-boilerplate/react-boilerplate.git Run npm run setup to install dependencies and clean the git repo. We auto-detect yarn for installing packages by default, if you wish to force npm usage do: USE_YARN=false npm run setup At this point you can run npm start to see the example app at http://localhost:3000. Run npm run clean to delete the example app.
structor
Run command npm i structor Run npm run structor Open in the browser Structor's workspace: http://localhost:2222/structor
Then I got the exact same error as @xyx2011
TypeError: d.getErrors is not a function
I got the following error after installing structor:
Meta data folder is created successfully. [email protected] D:\Development\structor\react-boilerplate +-- [email protected] extraneous `-- UNMET PEER DEPENDENCY [email protected]
npm WARN optional Skipping failed optional dependency /chokidar/fsevents: npm WARN notsup Not compatible with your operating system or architecture: fseve [email protected] npm WARN [email protected] requires a peer of webpack@^1.11.0 || ^2.1.0-beta || ^2.1.0 but none was installed. npm WARN [email protected] requires a peer of webpack@1 || ^2.1.0-beta but none was installed.
Ah, now I see what is the issue here. Thanks.
Unfortunately, react-boilerplate project is still using "webpack": "2.2.0-rc.3" and Structor has the dep for Webpack 2.2.0.
Could you please uninstall Structor and reinstall webpack and its dev servers with the following versions:
"webpack": "2.2.0",
"webpack-dev-middleware": "1.9.0",
"webpack-hot-middleware": "2.15.0",
and install Structor again.
--- OR ---
Uninstall Structor, Webpack and its dev servers manually. Then install Structor.
That worked, thanks @ipselon !