Show cool things you have done with our products


Post by amarjoshi »

I have downloaded bryntum-scheduler-1.x-trial.zip. In Example react_build is not working. Did npm install and npm start throws an error?
ℹ 「wds」: Project is running at https://localhost:3000/
ℹ 「wds」: webpack output is served from https://localhost:3000/dist
ℹ 「wds」: Content not from webpack is served from /Users/amarjoshi/Documents/scheduler-1.2.2-trial/examples/react_build/public
✖ 「wdm」: Hash: 1363c01bda8e8d117fb0
Version: webpack 4.8.3
Time: 1949ms
Built at: 02/09/2019 7:51:04 PM
    Asset      Size  Chunks             Chunk Names
bundle.js  1.19 MiB    main  [emitted]  main
Entrypoint main = bundle.js
[0] multi (webpack)-dev-server/client?https://localhost:3000 ./src/index.jsx 40 bytes {main} [built]
[./node_modules/ansi-html/index.js] 4.16 KiB {main} [built]
[./node_modules/ansi-regex/index.js] 135 bytes {main} [built]
[./node_modules/loglevel/lib/loglevel.js] 7.68 KiB {main} [built]
[./node_modules/react-dom/index.js] 1.33 KiB {main} [built]
[./node_modules/react/index.js] 190 bytes {main} [built]
[./node_modules/strip-ansi/index.js] 161 bytes {main} [built]
[./node_modules/url/url.js] 22.8 KiB {main} [built]
[./node_modules/webpack-dev-server/client/index.js?https://localhost:3000] (webpack)-dev-server/client?https://localhost:3000 7.78 KiB {main} [built]
[./node_modules/webpack-dev-server/client/overlay.js] (webpack)-dev-server/client/overlay.js 3.58 KiB {main} [built]
[./node_modules/webpack-dev-server/client/socket.js] (webpack)-dev-server/client/socket.js 1.05 KiB {main} [built]
[./node_modules/webpack/hot sync ^\.\/log$] (webpack)/hot sync nonrecursive ^\.\/log$ 170 bytes {main} [built]
[./node_modules/webpack/hot/emitter.js] (webpack)/hot/emitter.js 77 bytes {main} [built]
[./src/App.jsx] 6.31 KiB {main} [built]
[./src/index.jsx] 471 bytes {main} [built]
    + 139 hidden modules

ERROR in ./src/components/BryntumScheduler.jsx
Module not found: Error: Can't resolve './scheduler.module.js' in '/Users/amarjoshi/Documents/scheduler-1.2.2-trial/examples/react_build/src/components'
 @ ./src/components/BryntumScheduler.jsx 43:23-55
 @ ./src/App.jsx
 @ ./src/index.jsx
 @ multi (webpack)-dev-server/client?https://localhost:3000 ./src/index.jsx
ℹ 「wdm」: Failed to compile.

Post by pmiklashevich »

Thank you for the report! We will investigate and back to you shortly.

Pavlo Miklashevych
Sr. Frontend Developer


Post by pmiklashevich »

scheduler.module.js is getting copied to /src/components by copy.sh script which is called from start.sh. Probably build.sh/copy.sh/start.sh files have no permissions to be executable in your OS. Could you please make sure the rights are "755" and try `npm install` `npm start` again?

Pavlo Miklashevych
Sr. Frontend Developer


Post by pmiklashevich »

Hello,

It's been a while since 1.x was released and now we have lots of examples in `examples/react` folder. If you still experience some difficulties in starting Bryntum react application, please try again with the latest sources. And if it still doesn't work for you, please create a new thread in our forums with detailed description of what exactly is wrong. This guide should help you to get it running: https://www.bryntum.com/docs/scheduler/#guides/integration/react.md

Best,
Pavel

Pavlo Miklashevych
Sr. Frontend Developer


Post Reply