Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid left-hand side in assignment when packing Hanlebar-helpers with ncc #375

Open
rfennell opened this issue Dec 24, 2020 · 0 comments

Comments

@rfennell
Copy link

Thank you for this project, I am successfully using it in a Typscript/Node project, loading it as follows

const handlebars = require('handlebars')

const helpers = require('handlebars-helpers')({
    handlebars: handlebars
})

However I have found a problem if I try to package my project using @vercel/ncc to produce as single index.js. The command I am using the command

ncc build --source-map --license licenses.txt

The single index.js is create and all the code up to loading the handlebar-helpers module works, but the loading of the module causes the error

Invalid left-hand side in assignment

Note: this error only occurs if I package using ncc, if I use the uncompressed files my projects works as expected.

On searching for this issue I can see it usually related to a old versions of referenced module in a module see this issue in the vercel/ncc repo.

I wonder if you hade seen this before, and if there was any potential solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant