plasmo icon indicating copy to clipboard operation
plasmo copied to clipboard

[BUG] Very bland errors

Open CiaranPearse opened this issue 1 year ago • 1 comments

What happened?

with npm run dev everything is OK, but when I try to build I get this very obscure and undescriptive error:

image

The project Im working on is 100% code & feature complete, but cannot build and error is very unhelpful.

Version

Latest

What OS are you seeing the problem on?

MacOSX

What browsers are you seeing the problem on?

No response

Relevant log output

No response

(OPTIONAL) Contribution

  • [ ] I would like to fix this BUG via a PR

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct
  • [X] I checked the current issues for duplicate problems.

CiaranPearse avatar Jan 07 '24 20:01 CiaranPearse

Can you create a minimal re-prod? Try removing some dependencies or configurations and see which resulted in a successful build. This looks super random and I suspect it's related to either js version, or the bundler trying to make sense of some js code that's not in the bundled version:

https://www.reddit.com/r/learnjavascript/comments/wyci2h/expression_expected_error/

louisgv avatar Jan 08 '24 07:01 louisgv