Open hopeswiller opened 4 years ago
you have before to build the angular project with : https://github.com/chat21/chat21-web-widget#build-for-production
Thanks
And also the build for production fails to compile the "vendor.bundle.js" file which is required Please help
please paste the error
So i use the command below to build for production and i get only four bundles rendered. After its been deployed on the webserver, it provides an error indicating that vendor.bundle.js isnt available which of course it wasn't rendered $ ng build --prod --base-href --output-hashing none
Your global Angular CLI version (9.1.0) is greater than your local
version (1.7.4). The local Angular CLI version is used.
To disable this warning use "ng config -g cli.warnings.versionMismatch false".
Date: 2020-05-31T20:54:33.548Z
Hash: e4e7830ce68f84576b0e
Time: 72393ms
chunk {0} main.bundle.js (main) 2.07 MB [initial] [rendered]
chunk {1} polyfills.bundle.js (polyfills) 173 kB [initial] [rendered]
chunk {2} styles.bundle.css (styles) 0 bytes [initial] [rendered]
chunk {3} inline.bundle.js (inline) 796 bytes [entry] [rendered]
also i use the command below to build for local development and i get only five bundles rendered
$ ng build
Your global Angular CLI version (9.1.0) is greater than your local
version (1.7.4). The local Angular CLI version is used.
To disable this warning use "ng config -g cli.warnings.versionMismatch false".
Date: 2020-05-31T20:56:26.317Z
Hash: 8e3ae240bb37cca0b2e5
Time: 19099ms
chunk {inline} inline.bundle.js, inline.bundle.js.map (inline) 3.89 kB [entry] [rendered]
chunk {main} main.bundle.js, main.bundle.js.map (main) 848 kB [initial] [rendered]
chunk {polyfills} polyfills.bundle.js, polyfills.bundle.js.map (polyfills) 549 kB [initial] [rendered]
chunk {styles} styles.bundle.js, styles.bundle.js.map (styles) 14.7 kB [initial] [rendered]
chunk {vendor} vendor.bundle.js, vendor.bundle.js.map (vendor) 6.87 MB [initial] [rendered]
This is the error after i integrate the chat widget into my page
No help here
From the README file, it states to copy the content of dist folder to your webserver.
But there seems to be no dist folder