Open macker18 opened 4 years ago
Can you attach the CSS code that causes such an error?
I've tried a number of different CSS code variations. I used the exact CSS from the Promo Newsletter Mockup (https://github.com/ardas/stripo-plugin/blob/master/Public-Templates/Basic-Templates/Promo%20newsletter%20mockup/Promo%20newsletter%20mockup.css)
I also tried just using simple CSS and it throws the same error. CSS: html, body { width: 100%; font-family: arial, 'helvetica neue', helvetica, sans-serif; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; }
Hello @macker18 Is it possible to get the test access to your application to trace the issue? You can send the credentials to dmitry@stripo.email
It's difficult to give access to the application because of two-factor authentication and it's built into the Salesforce CRM system. I can perhaps walk dmitry through the code if he's open to a brief call.
Thanks,
Mac Allen Managing Partner | Emergence Labs t. (416) 453-0666 Twitter https://twitter.com/_macallen | LinkedIn https://www.linkedin.com/in/macrallen/
On Thu, Feb 13, 2020 at 4:11 PM DKulaksyz notifications@github.com wrote:
Hello @macker18 https://github.com/macker18 Is it possible to get the test access to your application to trace the issue? You can send the credentials to dmitry@stripo.email
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ardas/stripo-plugin/issues/5?email_source=notifications&email_token=ANRLTALL2HXPEBXJJ4VPAPLRCWZQLA5CNFSM4KUGL6BKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELWT6VY#issuecomment-585973591, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANRLTALHCOINWGC4PH7OXB3RCWZQLANCNFSM4KUGL6BA .
The Stripo Plugin is running properly in our app but we are getting an error when the CSS loads indicating that the trim method cannot be implemented on the CSS provided. If I leave CSS for the template as an empty string it works properly but if any css is present at all then the error is thrown.
Console Stack Trace: zone.min.js:1 Uncaught TypeError: x[i].trim is not a function at Object.e.toJSON (stripodeps.03bec6ddacf8f6c6499e.js:434) at Object.cssToObject (main.03bec6ddacf8f6c6499e.js:4) at main.03bec6ddacf8f6c6499e.js:2 at t.value (main.03bec6ddacf8f6c6499e.js:30) at e.invokeTask (zone.min.js:1) at r.runTask (zone.min.js:1) at t.invokeTask (zone.min.js:1) at a.useG.invoke (zone.min.js:1) at n (zone.min.js:1)