chat21-web-widget icon indicating copy to clipboard operation
chat21-web-widget copied to clipboard

Deploy to Web Server

Open hopeswiller opened this issue 5 years ago • 7 comments

From the README file, it states to copy the content of dist folder to your webserver.

But there seems to be no dist folder

hopeswiller avatar May 22 '20 14:05 hopeswiller

you have before to build the angular project with : https://github.com/chat21/chat21-web-widget#build-for-production

andrealeo83 avatar May 22 '20 15:05 andrealeo83

Thanks

hopeswiller avatar May 25 '20 20:05 hopeswiller

And also the build for production fails to compile the "vendor.bundle.js" file which is required Please help

hopeswiller avatar May 25 '20 20:05 hopeswiller

please paste the error

andrealeo83 avatar May 26 '20 09:05 andrealeo83

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]

hopeswiller avatar May 31 '20 21:05 hopeswiller

This is the error after i integrate the chat widget into my page

image

hopeswiller avatar May 31 '20 23:05 hopeswiller

No help here

hopeswiller avatar Jun 08 '20 11:06 hopeswiller