Hi,
I have generated an Angular application using Angular CLI and installed the pure cloud library using npm. I am not able to import platformClient or the module.
Request anybody if they have used javasrcipt SDK in angular application to give some tips on using Pure cloud JS SDK in Angular CLI application.
I know there was a request in this earlier, but I am not able to follow the suggested changes: https://developer.mypurecloud.com.au/forum/t/unable-to-use-js-sdk-in-angular-7-web-app/5086
That thread you linked has the correct instructions. You need to configure your compilation tool (e.g. webpack) to make it use the jsnext:main
entry point to access the es6 source classes instead of the pre-compiled modules. The pre-compiled modules have been created for use in CommonJS (node/web) and AMD (require.js) applications. Any situation where you're doing your own compilation requires you to reference the es6 source classes so they can be transpiled into your app appropriately.
Hi Tim,
Angular CLI project is different from the React project. I am not able to find the web pack config you are referring above.
Regards,
Girish
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.