You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
using Create-React-App (CRA) and bringing in import AppID from 'ibmcloud-appid-js works fine when running a dev build. But when running a production build (via npm run build) and serving the files - appID breaks - somewhere after signin the token gets lost. My guess is something is happening in the minification process of the build.
To work around it I'm loading appId directly from the CDN. I don't know exactly what CRA is doing for a prod build in it's webpack config - but surely the appId js file should be resilient against that.
The text was updated successfully, but these errors were encountered:
using Create-React-App (CRA) and bringing in
import AppID from 'ibmcloud-appid-js
works fine when running a dev build. But when running a production build (via npm run build) and serving the files - appID breaks - somewhere after signin the token gets lost. My guess is something is happening in the minification process of the build.To work around it I'm loading appId directly from the CDN. I don't know exactly what CRA is doing for a prod build in it's webpack config - but surely the appId js file should be resilient against that.
The text was updated successfully, but these errors were encountered: