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'
Support Forum
Hello.
It happens due to a tricky configuration on our side. Folder structure looks like:
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 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:
and change reference to it in examples/angular/src/tsconfig.app.json:
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 core-js dependency is already there
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
A: Install dependencies in the root folder
Navigate to root folder and run
cd scheduler-1.2.2
npm install @babel/runtime core-js
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
"bryntum-scheduler" : ["./assets/scheduler.module.transpiled.js"]
UPD: step 2 also requires to run
npm i @babel/runtime