This library works perfectly for me on a dev environment, but once I deploy to Heroku all I get is:
Uncaught TypeError: Cannot read property 'charAt' of undefined
A problem is that on the backtrace I get in the console, all of the files are somehow blank (?), so I'm not sure what's going on, other than the fact that createResourceLibrary and snake-case are involved in the backtrace.
For more context, I am using Webpack, and this is deployed on top of a Rails application using Webpacker.
For reference, if you're seeing this issue, you forgot to set the API url when creating the resource library (happens if you delegate the URL to an ENV variable).
Hi all!
This library works perfectly for me on a dev environment, but once I deploy to Heroku all I get is:
Uncaught TypeError: Cannot read property 'charAt' of undefined
A problem is that on the backtrace I get in the console, all of the files are somehow blank (?), so I'm not sure what's going on, other than the fact that
createResourceLibrary
andsnake-case
are involved in the backtrace.For more context, I am using Webpack, and this is deployed on top of a Rails application using Webpacker.
Any ideas what's going on?