Our pure JavaScript Scheduler component


Post by Txim2 »

Hello,
I buyed a Bryntum Scheduler Pro Licence few days ago, I need integrate on a Angular app. On my computer it works because I solved some issues on the first instalation maybe not in the correct way. I need some help with this .
The following error is showing when we run the module with the scheduler, npm start works fine but...

core.js: 12584 ERROR Error: Uncaught( in promise): Error: StaticInjectorError(
        AppModule)[SchedulerComponent - > ElementRef]:
    StaticInjectorError(Platform: core)[SchedulerComponent - > ElementRef]:
    NullInjectorError: No provider
for ElementRef!
    Error: StaticInjectorError(AppModule)[SchedulerComponent - > ElementRef]:
    StaticInjectorError(Platform: core)[SchedulerComponent - > ElementRef]:
    NullInjectorError: No provider
for ElementRef!
    at NullInjector.push.. / node_modules / @angular / core / fesm5 / core.js
    .NullInjector.get(core.js: 717)
at resolveToken(core.js: 954)
at tryResolveToken(core.js: 898)
at StaticInjector.push.. / node_modules / @angular / core / fesm5 / core.js
    .StaticInjector.get(core.js: 795)
at resolveToken(core.js: 954)
at tryResolveToken(core.js: 898)
at StaticInjector.push.. / node_modules / @angular / core / fesm5 / core.js
    .StaticInjector.get(core.js: 795)
at resolveNgModuleDep(core.js: 17739)
at NgModuleRef_.push.. / node_modules / @angular / core / fesm5 / core.js
    .NgModuleRef_.get(core.js: 18428)
at resolveNgModuleDep(core.js: 17739)
at resolvePromise(zone.js: 814)
at resolvePromise(zone.js: 771)
at zone.js: 873
at ZoneDelegate.push.. / node_modules / zone.js / dist / zone.js.ZoneDelegate
    .invokeTask(zone.js: 421)
at Object.onInvokeTask(core.js: 14134)
at ZoneDelegate.push.. / node_modules / zone.js / dist / zone.js.ZoneDelegate
    .invokeTask(zone.js: 420)
at Zone.push.. / node_modules / zone.js / dist / zone.js.Zone.runTask(zone.js:
    188)
at drainMicroTaskQueue(zone.js: 595)
at ZoneTask.push.. / node_modules / zone.js / dist / zone.js.ZoneTask
    .invokeTask[as invoke](zone.js: 500)
at invokeTask(zone.js: 1540)

To solve it the first time, I changed the folder link's in node_modules by the folder itself, the error was disapears. But every time I make a "npm install" have the same problem.
I need the scheduler component working via npm without make this little trap.

One think I tried is make a relative path on the package.json to the build and shared folder, but not works fine.


Post by saki »

If the issue resolved by replacing symlink with the actual folder then check if you have "preserveSymlinks":true in angular.json

      "architect": {
        "build": {
          "builder": "@angular-devkit/build-angular:browser",
          "options": {
            "preserveSymlinks": true, <=== this line

Post by Txim2 »

Thank's saki!! is exactly the tip I needed!!👌


Post Reply