Closed wilkinson4 closed 2 years ago
Thanks for the issue.
There isn't enough information for me to act on this though. Since this is a build-time plugin, the run-time code isn't sufficient in debugging.
Please provide a minimal reproduction so I can replicate the problem on my end. This will also help you prove that it's a bug in esbuild-loader, as opposed to your own code.
And in the future, when providing the error, please include the error stack because that shows the specifics of where it's coming from and provides insight into why.
Since this report is quite far fetched from being an esbuild-loader bug, I'm closing it until a minimal reproduction is provided. If you need help setting up, feel free to seek help in the Discussions tab.
Bug description
I am running into an issue while trying to convert our project from
babel-loader
toes-loader
. I am getting the following error:From the following code snippet:
Reproduction
A simple example to use is via the following code snippet
Where the issue here is
task
inconst classes = useStyles({taskStatus: task?.status})
Node.js package manager
npm
Environment
Can you contribute a fix?