Our pure JavaScript Scheduler component


Post by gitdev »

Hi,

I cannot build the angular example on the scheduler vanilla full version 1.2.2. I get those errors on npm start.

ERROR in C:/SVN/GPC/HMD2019/Test555/build/scheduler.module.transpiled.js
Module not found: Error: Can't resolve '@babel/runtime/helpers/assertThisInitialized' in 'C:\SVN\GPC\HMD2019\Test555\build'
ERROR in C:/SVN/GPC/HMD2019/Test555/build/scheduler.module.transpiled.js
Module not found: Error: Can't resolve '@babel/runtime/helpers/asyncToGenerator' in 'C:\SVN\GPC\HMD2019\Test555\build'
ERROR in C:/SVN/GPC/HMD2019/Test555/build/scheduler.module.transpiled.js
Module not found: Error: Can't resolve '@babel/runtime/helpers/classCallCheck' in 'C:\SVN\GPC\HMD2019\Test555\build'
ERROR in C:/SVN/GPC/HMD2019/Test555/build/scheduler.module.transpiled.js
Module not found: Error: Can't resolve '@babel/runtime/helpers/construct' in 'C:\SVN\GPC\HMD2019\Test555\build'
ERROR in C:/SVN/GPC/HMD2019/Test555/build/scheduler.module.transpiled.js
Module not found: Error: Can't resolve '@babel/runtime/helpers/createClass' in 'C:\SVN\GPC\HMD2019\Test555\build'
ERROR in C:/SVN/GPC/HMD2019/Test555/build/scheduler.module.transpiled.js
Module not found: Error: Can't resolve '@babel/runtime/helpers/defineProperty' in 'C:\SVN\GPC\HMD2019\Test555\build'
ERROR in C:/SVN/GPC/HMD2019/Test555/build/scheduler.module.transpiled.js
Module not found: Error: Can't resolve '@babel/runtime/helpers/get' in 'C:\SVN\GPC\HMD2019\Test555\build'
ERROR in C:/SVN/GPC/HMD2019/Test555/build/scheduler.module.transpiled.js
Module not found: Error: Can't resolve '@babel/runtime/helpers/getPrototypeOf' in 'C:\SVN\GPC\HMD2019\Test555\build'
ERROR in C:/SVN/GPC/HMD2019/Test555/build/scheduler.module.transpiled.js
Module not found: Error: Can't resolve '@babel/runtime/helpers/inherits' in 'C:\SVN\GPC\HMD2019\Test555\build'
ERROR in C:/SVN/GPC/HMD2019/Test555/build/scheduler.module.transpiled.js
Module not found: Error: Can't resolve '@babel/runtime/helpers/interopRequireDefault' in 'C:\SVN\GPC\HMD2019\Test555\build'
ERROR in C:/SVN/GPC/HMD2019/Test555/build/scheduler.module.transpiled.js
Module not found: Error: Can't resolve '@babel/runtime/helpers/possibleConstructorReturn' in 'C:\SVN\GPC\HMD2019\Test555\build'
ERROR in C:/SVN/GPC/HMD2019/Test555/build/scheduler.module.transpiled.js
Module not found: Error: Can't resolve '@babel/runtime/helpers/set' in 'C:\SVN\GPC\HMD2019\Test555\build'
ERROR in C:/SVN/GPC/HMD2019/Test555/build/scheduler.module.transpiled.js
Module not found: Error: Can't resolve '@babel/runtime/helpers/slicedToArray' in 'C:\SVN\GPC\HMD2019\Test555\build'
ERROR in C:/SVN/GPC/HMD2019/Test555/build/scheduler.module.transpiled.js
Module not found: Error: Can't resolve '@babel/runtime/helpers/taggedTemplateLiteral' in 'C:\SVN\GPC\HMD2019\Test555\build'
ERROR in C:/SVN/GPC/HMD2019/Test555/build/scheduler.module.transpiled.js
Module not found: Error: Can't resolve '@babel/runtime/helpers/toConsumableArray' in 'C:\SVN\GPC\HMD2019\Test555\build'
ERROR in C:/SVN/GPC/HMD2019/Test555/build/scheduler.module.transpiled.js
Module not found: Error: Can't resolve '@babel/runtime/helpers/typeof' in 'C:\SVN\GPC\HMD2019\Test555\build'
ERROR in C:/SVN/GPC/HMD2019/Test555/build/scheduler.module.transpiled.js
Module not found: Error: Can't resolve '@babel/runtime/regenerator' in 'C:\SVN\GPC\HMD2019\Test555\build'
ERROR in C:/SVN/GPC/HMD2019/Test555/build/scheduler.module.transpiled.js
Module not found: Error: Can't resolve 'core-js/modules/es6.array.find' in 'C:\SVN\GPC\HMD2019\Test555\build'
ERROR in C:/SVN/GPC/HMD2019/Test555/build/scheduler.module.transpiled.js
Module not found: Error: Can't resolve 'core-js/modules/es6.array.find-index' in 'C:\SVN\GPC\HMD2019\Test555\build'
ERROR in C:/SVN/GPC/HMD2019/Test555/build/scheduler.module.transpiled.js
Module not found: Error: Can't resolve 'core-js/modules/es6.array.from' in 'C:\SVN\GPC\HMD2019\Test555\build'
ERROR in C:/SVN/GPC/HMD2019/Test555/build/scheduler.module.transpiled.js
Module not found: Error: Can't resolve 'core-js/modules/es6.array.iterator' in 'C:\SVN\GPC\HMD2019\Test555\build'
ERROR in C:/SVN/GPC/HMD2019/Test555/build/scheduler.module.transpiled.js
Module not found: Error: Can't resolve 'core-js/modules/es6.function.name' in 'C:\SVN\GPC\HMD2019\Test555\build'
ERROR in C:/SVN/GPC/HMD2019/Test555/build/scheduler.module.transpiled.js
Module not found: Error: Can't resolve 'core-js/modules/es6.map' in 'C:\SVN\GPC\HMD2019\Test555\build'
ERROR in C:/SVN/GPC/HMD2019/Test555/build/scheduler.module.transpiled.js
Module not found: Error: Can't resolve 'core-js/modules/es6.math.sign' in 'C:\SVN\GPC\HMD2019\Test555\build'
ERROR in C:/SVN/GPC/HMD2019/Test555/build/scheduler.module.transpiled.js
Module not found: Error: Can't resolve 'core-js/modules/es6.number.constructor' in 'C:\SVN\GPC\HMD2019\Test555\build'
ERROR in C:/SVN/GPC/HMD2019/Test555/build/scheduler.module.transpiled.js
Module not found: Error: Can't resolve 'core-js/modules/es6.object.assign' in 'C:\SVN\GPC\HMD2019\Test555\build'
ERROR in C:/SVN/GPC/HMD2019/Test555/build/scheduler.module.transpiled.js
Module not found: Error: Can't resolve 'core-js/modules/es6.object.freeze' in 'C:\SVN\GPC\HMD2019\Test555\build'
ERROR in C:/SVN/GPC/HMD2019/Test555/build/scheduler.module.transpiled.js
Module not found: Error: Can't resolve 'core-js/modules/es6.object.is-extensible' in 'C:\SVN\GPC\HMD2019\Test555\build'
ERROR in C:/SVN/GPC/HMD2019/Test555/build/scheduler.module.transpiled.js
Module not found: Error: Can't resolve 'core-js/modules/es6.object.is-frozen' in 'C:\SVN\GPC\HMD2019\Test555\build'
ERROR in C:/SVN/GPC/HMD2019/Test555/build/scheduler.module.transpiled.js
Module not found: Error: Can't resolve 'core-js/modules/es6.object.keys' in 'C:\SVN\GPC\HMD2019\Test555\build'
ERROR in C:/SVN/GPC/HMD2019/Test555/build/scheduler.module.transpiled.js
Module not found: Error: Can't resolve 'core-js/modules/es6.promise' in 'C:\SVN\GPC\HMD2019\Test555\build'
ERROR in C:/SVN/GPC/HMD2019/Test555/build/scheduler.module.transpiled.js
Module not found: Error: Can't resolve 'core-js/modules/es6.reflect.define-property' in 'C:\SVN\GPC\HMD2019\Test555\build'
ERROR in C:/SVN/GPC/HMD2019/Test555/build/scheduler.module.transpiled.js
Module not found: Error: Can't resolve 'core-js/modules/es6.reflect.get-own-property-descriptor' in 'C:\SVN\GPC\HMD2019\Test555\build'
ERROR in C:/SVN/GPC/HMD2019/Test555/build/scheduler.module.transpiled.js
Module not found: Error: Can't resolve 'core-js/modules/es6.reflect.has' in 'C:\SVN\GPC\HMD2019\Test555\build'
ERROR in C:/SVN/GPC/HMD2019/Test555/build/scheduler.module.transpiled.js
Module not found: Error: Can't resolve 'core-js/modules/es6.reflect.own-keys' in 'C:\SVN\GPC\HMD2019\Test555\build'
ERROR in C:/SVN/GPC/HMD2019/Test555/build/scheduler.module.transpiled.js
Module not found: Error: Can't resolve 'core-js/modules/es6.regexp.constructor' in 'C:\SVN\GPC\HMD2019\Test555\build'
ERROR in C:/SVN/GPC/HMD2019/Test555/build/scheduler.module.transpiled.js
Module not found: Error: Can't resolve 'core-js/modules/es6.regexp.match' in 'C:\SVN\GPC\HMD2019\Test555\build'
ERROR in C:/SVN/GPC/HMD2019/Test555/build/scheduler.module.transpiled.js
Module not found: Error: Can't resolve 'core-js/modules/es6.regexp.replace' in 'C:\SVN\GPC\HMD2019\Test555\build'
ERROR in C:/SVN/GPC/HMD2019/Test555/build/scheduler.module.transpiled.js
Module not found: Error: Can't resolve 'core-js/modules/es6.regexp.search' in 'C:\SVN\GPC\HMD2019\Test555\build'
ERROR in C:/SVN/GPC/HMD2019/Test555/build/scheduler.module.transpiled.js
Module not found: Error: Can't resolve 'core-js/modules/es6.regexp.split' in 'C:\SVN\GPC\HMD2019\Test555\build'
ERROR in C:/SVN/GPC/HMD2019/Test555/build/scheduler.module.transpiled.js
Module not found: Error: Can't resolve 'core-js/modules/es6.regexp.to-string' in 'C:\SVN\GPC\HMD2019\Test555\build'
ERROR in C:/SVN/GPC/HMD2019/Test555/build/scheduler.module.transpiled.js
Module not found: Error: Can't resolve 'core-js/modules/es6.set' in 'C:\SVN\GPC\HMD2019\Test555\build'
ERROR in C:/SVN/GPC/HMD2019/Test555/build/scheduler.module.transpiled.js
Module not found: Error: Can't resolve 'core-js/modules/es6.string.anchor' in 'C:\SVN\GPC\HMD2019\Test555\build'
ERROR in C:/SVN/GPC/HMD2019/Test555/build/scheduler.module.transpiled.js
Module not found: Error: Can't resolve 'core-js/modules/es6.string.ends-with' in 'C:\SVN\GPC\HMD2019\Test555\build'
ERROR in C:/SVN/GPC/HMD2019/Test555/build/scheduler.module.transpiled.js
Module not found: Error: Can't resolve 'core-js/modules/es6.string.includes' in 'C:\SVN\GPC\HMD2019\Test555\build'
ERROR in C:/SVN/GPC/HMD2019/Test555/build/scheduler.module.transpiled.js
Module not found: Error: Can't resolve 'core-js/modules/es6.string.iterator' in 'C:\SVN\GPC\HMD2019\Test555\build'
ERROR in C:/SVN/GPC/HMD2019/Test555/build/scheduler.module.transpiled.js
Module not found: Error: Can't resolve 'core-js/modules/es6.string.repeat' in 'C:\SVN\GPC\HMD2019\Test555\build'
ERROR in C:/SVN/GPC/HMD2019/Test555/build/scheduler.module.transpiled.js
Module not found: Error: Can't resolve 'core-js/modules/es6.string.starts-with' in 'C:\SVN\GPC\HMD2019\Test555\build'
ERROR in C:/SVN/GPC/HMD2019/Test555/build/scheduler.module.transpiled.js
Module not found: Error: Can't resolve 'core-js/modules/es6.symbol' in 'C:\SVN\GPC\HMD2019\Test555\build'
ERROR in C:/SVN/GPC/HMD2019/Test555/build/scheduler.module.transpiled.js
Module not found: Error: Can't resolve 'core-js/modules/es7.array.includes' in 'C:\SVN\GPC\HMD2019\Test555\build'
ERROR in C:/SVN/GPC/HMD2019/Test555/build/scheduler.module.transpiled.js
Module not found: Error: Can't resolve 'core-js/modules/es7.object.define-getter' in 'C:\SVN\GPC\HMD2019\Test555\build'
ERROR in C:/SVN/GPC/HMD2019/Test555/build/scheduler.module.transpiled.js
Module not found: Error: Can't resolve 'core-js/modules/es7.object.entries' in 'C:\SVN\GPC\HMD2019\Test555\build'
ERROR in C:/SVN/GPC/HMD2019/Test555/build/scheduler.module.transpiled.js
Module not found: Error: Can't resolve 'core-js/modules/es7.object.get-own-property-descriptors' in 'C:\SVN\GPC\HMD2019\Test555\build'
ERROR in C:/SVN/GPC/HMD2019/Test555/build/scheduler.module.transpiled.js
Module not found: Error: Can't resolve 'core-js/modules/es7.object.values' in 'C:\SVN\GPC\HMD2019\Test555\build'
ERROR in C:/SVN/GPC/HMD2019/Test555/build/scheduler.module.transpiled.js
Module not found: Error: Can't resolve 'core-js/modules/es7.string.pad-end' in 'C:\SVN\GPC\HMD2019\Test555\build'
ERROR in C:/SVN/GPC/HMD2019/Test555/build/scheduler.module.transpiled.js
Module not found: Error: Can't resolve 'core-js/modules/es7.string.pad-start' in 'C:\SVN\GPC\HMD2019\Test555\build'
ERROR in C:/SVN/GPC/HMD2019/Test555/build/scheduler.module.transpiled.js
Module not found: Error: Can't resolve 'core-js/modules/es7.symbol.async-iterator' in 'C:\SVN\GPC\HMD2019\Test555\build'
ERROR in C:/SVN/GPC/HMD2019/Test555/build/scheduler.module.transpiled.js
Module not found: Error: Can't resolve 'core-js/modules/web.dom.iterable' in 'C:\SVN\GPC\HMD2019\Test555\build'
ERROR in C:/SVN/GPC/HMD2019/Test555/build/scheduler.module.transpiled.js
Module not found: Error: Can't resolve 'regenerator-runtime/runtime' in 'C:\SVN\GPC\HMD2019\Test555\build'

Post by gitdev »

Same thing on 1.2.3.

The trial version was working good a few weeks ago, but now that I use the full version, it cannot start :(

Update : I'm talking about the project examples/angular

Post by pmiklashevich »

Thanks for the report! We're on that! Will get back to you soon. Stay tuned!

Pavlo Miklashevych
Sr. Frontend Developer


Post by pmiklashevich »

Please try to run "npm i @babel/runtime --save" in project's root. Let me know please if it helps to solve the issue.

Pavlo Miklashevych
Sr. Frontend Developer


Post by gitdev »

Unfortunately, running this command did not fix the issue. Still, having the problem with "@babel/runtime": "^7.3.1" installed.

Post by Maxim Gorkovsky »

Hello.
It happens due to a tricky configuration on our side. Folder structure looks like:
scheduler-1.2.2 (root)
- build
-- scheduler.module.transpiled.js
- examples
-- angular
--- package.json
- package.json
In the angular demo we refer to scheduler module bundle, which has own dependencies (e.g. to @babel/runtime) and it is trying to import them from node_modules folder on the top level. So there are two ways to resolve issue on your end:

A: Install dependencies in the root folder

Navigate to root folder and run
cd scheduler-1.2.2
npm install @babel/runtime core-js
This will install two dependencies to root/node_modules folder which would be picked up durung build

B: Move bundle to angular app folder

Copy bundle:
cd scheduler-1.2.2
cp build/scheduler.module.transpiled.js examples/angular/src/assets/scheduler.module.transpiled.js
and change reference to it in examples/angular/src/tsconfig.app.json:
"bryntum-scheduler" : ["./assets/scheduler.module.transpiled.js"]
We have updated demo on our side to avoid such problems in future releases, and we picked option #2.

UPD: step 2 also requires to run
npm i @babel/runtime
core-js dependency is already there

Post Reply