Open aylabbs opened 2 years ago
How does your babel.config
looks like? Try to compare it with https://github.com/alonrbar/easy-template-x-angular-expressions/blob/master/babel.config.js
I don't have one.
It is a regular create-react-app.
I wouldn't know where to find it.
Also, I use that operator just fine in my regular app code.
mmm... Sorry it is weird, can't think of anything right now.
Since this package is pretty small, what I suggest is that you just copy the source code into your project.
The createResolver
function is the entry point of the package and is defined here https://github.com/alonrbar/easy-template-x-angular-expressions/blob/ec0896641f0af30303fa61c3ba5b81f5d0b5dae0/src/createResolver.ts
The entry point just reference the main logic file, which is here https://github.com/alonrbar/easy-template-x-angular-expressions/blob/ec0896641f0af30303fa61c3ba5b81f5d0b5dae0/src/resolver.ts
The other files only contain small utilities that serves the main logical class.
Another, more simpler option maybe will be to fork this package and change the offending line (it's here). You can then reference your fork directly from github (see https://stackoverflow.com/questions/16350673/depend-on-a-branch-or-tag-using-a-git-url-in-a-package-json)
this is my
package.json
:It is failing to parse the nullish coalescing operator. Idk why. I use them in my react app.
Not sure how build works with dependencies. Any ideas to try?