Closed shayant98 closed 1 year ago
I am currently facing the same issue.
Hello, apologies for any issues caused, I'm sorry about the tardiness of my reply.
Could you guys provide a repository with this issue or steps to reproduce the problem including context regarding your runtime environments?
As a side note, I have a CodeSandbox sandbox of the hero-slider
package here being used in a simple React app, but I'm having problems reproducing the issue.
Same stack trace happened with me while trying to use the component...Been trying to solve the error for hours..and its weird because It actually did work in the first time I tried it..then for some reasons I dont remember what I did exactly that it stopped working...
Thanks for the heads up @ProsperDProsper. If you don't mind I had a couple of questions that could help me debug this issue. Would you mind sharing a repo I could fork to see if I can reproduce the issue? What version of Node are you using?
In my case for example, first the error was thrown after adding backgroundImageBlendMode
prop to the Slide background. Solved the issue by reinstalling the package. Later it again broke after adding label prop to the Slide. The third time it broke after reloading the page
Thank you all, I will take a closer look and update the open issue once I publish the update to npm.
This issue should be fixed as of 1b22785df45638ff8a9abcdebe442ae1f90e0c0b. The problem was that the rollout output was targeting ESM rather than CJS, so I updated the configuration.
I'm sorry it took so long! Been caught up with other stuff.
SyntaxError: Unexpected token 'export'
I'm trying to build a hero section using the slider, but everytime iI import "HeroSlider" the page breaks with the following error:
full stacktrace:
hero.tsx