nstudio / xplat

Cross-platform (xplat) tools for Nx workspaces.
MIT License
366 stars 52 forks source link

Note: Useful tip on migrating your workspace #274

Open NathanWalker opened 3 years ago

NathanWalker commented 3 years ago

If you are migrating an old workspace (nx or xplat) and encounter this error:

Cannot read property 'content' of null
/path/to/workspace/node_modules/yargs/build/lib/yargs.js:1132
                throw err;

It is likely that you need to add tsconfig.base.json and have a tsconfig.json as well. If your workspace has a tsconfig.json simply rename it to tsconfig.base.json and then create a tsconfig.json with these contents:

{
    "extends": "./tsconfig.base.json"
}

That should allow the migration to continue.

Also a note that you should always migrate Nx first:

nx migrate latest

Then migrate xplat:

nx migrate @nstudio/xplat