Auth0 Home Blog Docs

Webpack builds using Auth0-lock from CDN

Currently, I am loading auth0-lock using the CDN and just using Auth0Lock without requiring or importing modules because if I build my production SSR bundle using a node module, it will throw an error about window not being defined.

However, if I use CDN, during build time I will get Auth0Lock is undefined. How do I successfully build with using the library via CDN?

Hey there @j4mesjung!

I don’t have enough JS package managers etc knowledge I guess but I will try reaching out to this certain repo maintainers via GitHub issue and asking them about that.