1

I configured our new project using yarn workspaces as below

MyProject
  - native
  - shared
  - web

shared is a dependency for both native and web. As we're using mobx and decorators, I configured transform-decorators-legacy in .babelrc of both shared and web folders. Now I'm trying to run npm start in web and getting build errors.

Module parse failed: Unexpected character '@' 

I think we have to babelify the shared folder. So did any one face this kind of issue? How we have to configure the project?

tk421
  • 5,775
  • 6
  • 23
  • 34
Anesh
  • 192
  • 2
  • 11

0 Answers0