Our pure JavaScript Scheduler component


Post by Dev@2609 »

I get attached error while running npm i in shared folder
Attachments
npm.png
npm.png (63.13 KiB) Viewed 1988 times

Post by Maxim Gorkovsky »

node-gyp requires python, as this message says. Please refer here for installation guide: https://www.npmjs.com/package/node-gyp

Post by Dev@2609 »

same error after installing node-gyp as well
node-sass@4.12.0 postinstall: `node scripts/build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-sass@4.12.0 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

Post by mats »

Please always dump full error log

Post by Dev@2609 »

both python install and gyp installation throw attached error.

It says failed at node-sass , even tried installing node-sass still no luck
Attachments
debug1.txt
(1.19 MiB) Downloaded 112 times

Post by Maxim Gorkovsky »

Have you read this log? Have you seen recommendation to run commands as administrator? Have you tried it?
This doesn't look like you have problem with our products, but a problem with common npm packages. Have you tried to ask for support at corresponding package repositories?

Post by Dev@2609 »

After updating the package repositories I seem to have got rid of above errors but now it getting below error.
C:\Aniket\BryntumScheduler\scheduler-2.3.1-trial\examples\angular\advanced>ng serve --port 4300
10% building 4/4 modules 0 activei 「wds」: Project is running at https://localhost:4300/webpack-dev-server/
i 「wds」: webpack output is served from /
i 「wds」: 404s will fallback to //index.html

chunk {main} main.js, main.js.map (main) 2.08 kB [initial] [rendered]
chunk {polyfills} polyfills.js, polyfills.js.map (polyfills) 149 kB [initial] [rendered]
chunk {polyfills-es5} polyfills-es5.js, polyfills-es5.js.map (polyfills-es5) 531 kB [initial] [rendered]
chunk {runtime} runtime.js, runtime.js.map (runtime) 6.15 kB [entry] [rendered]
chunk {styles} styles.js, styles.js.map (styles) 1.31 MB [initial] [rendered]
chunk {vendor} vendor.js, vendor.js.map (vendor) 340 kB [initial] [rendered]
Date: 2019-12-13T12:04:37.488Z - Hash: b8140da882a78fd3a182 - Time: 16681ms

ERROR in app/app.module.ts:13:44 - error TS2307: Cannot find module 'bryntum-angular-shared'.

13 import { BryntumAngularSharedModule } from 'bryntum-angular-shared';
                                              ~~~~~~~~~~~~~~~~~~~~~~~~

ERROR in ./src/styles.scss (./node_modules/@angular-devkit/build-angular/src/angular-cli-files/plugins/raw-css-loader.js!./node_modules/postcss-loader/src??embedded!./node_modules/sass-loader/lib/loader.js??ref--15-3!./src/styles.scss)
Module Error (from ./node_modules/postcss-loader/src/index.js):
(Emitted value instead of an instance of Error) CssSyntaxError: C:\Aniket\BryntumScheduler\scheduler-2.3.1-trial\examples\angular\advanced\src\styles.scss:16:4: Can't resolve 'bryntum-angular-shared/assets/fonts/lato/Lato-Italic.woff' in 'C:\Aniket\BryntumScheduler\scheduler-2.3.1-trial\examples\angular\advanced\src'

  14 | @font-face {
  15 |     font-family: Lato;
> 16 |     src: url('bryntum-angular-shared/assets/fonts/lato/Lato-Regular.woff2') format('woff2'), /* Super Modern Browsers */
     |    ^
  17 |          url('bryntum-angular-shared/assets/fonts/lato/Lato-Italic.woff2') format('woff2'), /* Super Modern Browsers */
  18 |          url('bryntum-angular-shared/assets/fonts/lato/Lato-Regular.woff') format('woff'), /* Pretty Modern Browsers */

ERROR in ./src/styles.scss (./node_modules/@angular-devkit/build-angular/src/angular-cli-files/plugins/raw-css-loader.js!./node_modules/postcss-loader/src??embedded!./node_modules/sass-loader/lib/loader.js??ref--15-3!./src/styles.scss)
Module Error (from ./node_modules/postcss-loader/src/index.js):
(Emitted value instead of an instance of Error) CssSyntaxError: C:\Aniket\BryntumScheduler\scheduler-2.3.1-trial\examples\angular\advanced\src\styles.scss:16:4: Can't resolve 'bryntum-angular-shared/assets/fonts/lato/Lato-Italic.woff2' in 'C:\Aniket\BryntumScheduler\scheduler-2.3.1-trial\examples\angular\advanced\src'

  14 | @font-face {
  15 |     font-family: Lato;
> 16 |     src: url('bryntum-angular-shared/assets/fonts/lato/Lato-Regular.woff2') format('woff2'), /* Super Modern Browsers */
     |    ^
  17 |          url('bryntum-angular-shared/assets/fonts/lato/Lato-Italic.woff2') format('woff2'), /* Super Modern Browsers */
  18 |          url('bryntum-angular-shared/assets/fonts/lato/Lato-Regular.woff') format('woff'), /* Pretty Modern Browsers */

ERROR in ./src/styles.scss (./node_modules/@angular-devkit/build-angular/src/angular-cli-files/plugins/raw-css-loader.js!./node_modules/postcss-loader/src??embedded!./node_modules/sass-loader/lib/loader.js??ref--15-3!./src/styles.scss)
Module Error (from ./node_modules/postcss-loader/src/index.js):
(Emitted value instead of an instance of Error) CssSyntaxError: C:\Aniket\BryntumScheduler\scheduler-2.3.1-trial\examples\angular\advanced\src\styles.scss:16:4: Can't resolve 'bryntum-angular-shared/assets/fonts/lato/Lato-Regular.woff' in 'C:\Aniket\BryntumScheduler\scheduler-2.3.1-trial\examples\angular\advanced\src'

  14 | @font-face {
  15 |     font-family: Lato;
> 16 |     src: url('bryntum-angular-shared/assets/fonts/lato/Lato-Regular.woff2') format('woff2'), /* Super Modern Browsers */
     |    ^
  17 |          url('bryntum-angular-shared/assets/fonts/lato/Lato-Italic.woff2') format('woff2'), /* Super Modern Browsers */
  18 |          url('bryntum-angular-shared/assets/fonts/lato/Lato-Regular.woff') format('woff'), /* Pretty Modern Browsers */

ERROR in ./src/styles.scss (./node_modules/@angular-devkit/build-angular/src/angular-cli-files/plugins/raw-css-loader.js!./node_modules/postcss-loader/src??embedded!./node_modules/sass-loader/lib/loader.js??ref--15-3!./src/styles.scss)
Module Error (from ./node_modules/postcss-loader/src/index.js):
(Emitted value instead of an instance of Error) CssSyntaxError: C:\Aniket\BryntumScheduler\scheduler-2.3.1-trial\examples\angular\advanced\src\styles.scss:16:4: Can't resolve 'bryntum-angular-shared/assets/fonts/lato/Lato-Regular.woff2' in 'C:\Aniket\BryntumScheduler\scheduler-2.3.1-trial\examples\angular\advanced\src'

  14 | @font-face {
  15 |     font-family: Lato;
> 16 |     src: url('bryntum-angular-shared/assets/fonts/lato/Lato-Regular.woff2') format('woff2'), /* Super Modern Browsers */
     |    ^
  17 |          url('bryntum-angular-shared/assets/fonts/lato/Lato-Italic.woff2') format('woff2'), /* Super Modern Browsers */
  18 |          url('bryntum-angular-shared/assets/fonts/lato/Lato-Regular.woff') format('woff'), /* Pretty Modern Browsers */

** Angular Live Development Server is listening on localhost:4300, open your browser on https://localhost:4300/ **
i 「wdm」: Failed to compile.

Post by Dev@2609 »

Hi Team,

Is there any restriction that i cant use scheduler and gannt products together. I can build the scheduler but getting this on console
Bryntum Scheduler Trial Version
scheduler.umd.js:14 Uncaught Error: Bundle included twice, check cache-busters and file types (.js)
    at Function.setVersion (scheduler.umd.js:14)
    at Module../lib/Grid/view/Grid.js (scheduler.umd.js:16)
    at _0x58a6e4 (scheduler.umd.js:9)
    at Module../webpack.entry.js (scheduler.umd.js:37)
    at _0x58a6e4 (scheduler.umd.js:9)
    at ./lib/Common/Base.js (scheduler.umd.js:9)
    at scheduler.umd.js:9
    at webpackUniversalModuleDefinition (scheduler.umd.js:9)
    at Object.<anonymous> (scheduler.umd.js:9)
    at Object.../_shared/node_modules/bryntum-scheduler/scheduler.umd.js (vendor.js:50)

Post by johan.isaksson »

Hi,

It is supposed to be possible to use both bundles on the same page, although they cannot share stores.

That error is for having imported the same products bundle twice. Please check your sources that you only include it once on page. If you are certain that you do it only one and the error still remains, please upload a runnable testcase that we can inspect.
Best regards,
Johan Isaksson

Post by Dev@2609 »

Johan, I have just unzipped the scheduler product and tried to build and getting this error.

Simultanously I am trying Gantt product which seems to be working fine.

Thanks!!

Post Reply