Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Note: Useful tip on migrating your workspace #274

Open
NathanWalker opened this issue Jul 1, 2021 · 0 comments
Open

Note: Useful tip on migrating your workspace #274

NathanWalker opened this issue Jul 1, 2021 · 0 comments
Labels
developer note Notes to help those who may be having trouble

Comments

@NathanWalker
Copy link
Member

NathanWalker commented Jul 1, 2021

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
@NathanWalker NathanWalker added the developer note Notes to help those who may be having trouble label Jul 1, 2021
@NathanWalker NathanWalker changed the title Dev Note on migrating Note: Useful tip on migrating your workspace Jul 1, 2021
@NathanWalker NathanWalker pinned this issue Dec 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
developer note Notes to help those who may be having trouble
Projects
None yet
Development

No branches or pull requests

1 participant