patronum icon indicating copy to clipboard operation
patronum copied to clipboard

Module parse failed: Unexpected token patronum.umd.js

Open psdarko opened this issue 3 years ago • 3 comments

Optional chaining ?. on many places of code

p({ type: t, name: o, scopeName: n?.name, value: e });

[email protected]

psdarko avatar Oct 27 '22 06:10 psdarko

Hello!

Could you add a bit more details? Which browsers you target, how your project is built?

AlexandrHoroshih avatar Nov 09 '22 06:11 AlexandrHoroshih

I recommend to transpile your node_modules for target browsers.

Because optional chaining is enabled for two years already:

image

sergeysova avatar Nov 09 '22 07:11 sergeysova

@sergeysova please compile by yoursefl it's or provide another entrypoint will be nice for me

KlonD90 avatar Dec 26 '22 09:12 KlonD90