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

fix(react): transpile only the config files then disable tsnode service #19387

Merged
merged 3 commits into from Oct 3, 2023

Conversation

Coly010
Copy link
Contributor

@Coly010 Coly010 commented Sep 29, 2023

Current Behavior

Dev Remotes cause both a TS error with redeclared const in a block-scope and type-checking running out of memory.

Expected Behavior

Dev remotes with a TS Config should work without issue

Related Issue(s)

Fixes #

@Coly010 Coly010 requested review from a team as code owners September 29, 2023 23:20
@Coly010 Coly010 self-assigned this Sep 29, 2023
@Coly010 Coly010 requested a review from a team as a code owner September 29, 2023 23:20
@vercel
Copy link

vercel bot commented Sep 29, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Updated (UTC)
nx-dev ⬜️ Ignored (Inspect) Visit Preview Oct 3, 2023 4:36pm

@Coly010 Coly010 force-pushed the fix/module-federation-dev-servers branch 2 times, most recently from df4b00c to f5ca733 Compare October 1, 2023 20:03
@Coly010 Coly010 force-pushed the fix/module-federation-dev-servers branch from f5ca733 to 49f0a5d Compare October 2, 2023 11:02
@Coly010 Coly010 requested a review from a team as a code owner October 2, 2023 11:02
@Coly010 Coly010 force-pushed the fix/module-federation-dev-servers branch from 49f0a5d to 19aa7a1 Compare October 2, 2023 11:26
@Coly010 Coly010 force-pushed the fix/module-federation-dev-servers branch 3 times, most recently from 19e4d17 to 291c678 Compare October 2, 2023 12:50
Copy link
Contributor

@meeroslav meeroslav left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left some comments, but it's not critical. We can clean it up afterwards.

@Coly010 Coly010 force-pushed the fix/module-federation-dev-servers branch from 291c678 to fbe26eb Compare October 3, 2023 09:25
@Coly010 Coly010 force-pushed the fix/module-federation-dev-servers branch from fbe26eb to 65fa142 Compare October 3, 2023 10:04
@@ -4,7 +4,17 @@
"sourceRoot": "graph/client-e2e/src",
"projectType": "application",
"targets": {
"pre-e2e": {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This stuff is separate right? Can we sort this out outside of this PR?

packages/js/src/utils/typescript/tsnode-register.ts Outdated Show resolved Hide resolved
@Coly010 Coly010 force-pushed the fix/module-federation-dev-servers branch from caedb36 to b9ef59c Compare October 3, 2023 15:31
@Coly010 Coly010 force-pushed the fix/module-federation-dev-servers branch from b9ef59c to bae6674 Compare October 3, 2023 15:31
Copy link
Collaborator

@FrozenPandaz FrozenPandaz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks much better, only the import should be be fixed.

@@ -3,6 +3,7 @@ import { join } from 'path';
import { existsSync, readFileSync } from 'fs';
import { logger } from '@nx/devkit';
import { tsNodeRegister } from '@nx/js/src/utils/typescript/tsnode-register';
import { registerTsProject } from 'nx/src/utils/register';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should come from @nx/js/src/internal

@@ -1,5 +1,6 @@
import { merge } from 'webpack-merge';
import { tsNodeRegister } from '@nx/js/src/utils/typescript/tsnode-register';
import { registerTsProject } from 'nx/src/utils/register';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should come from @nx/js/src/internal

@FrozenPandaz FrozenPandaz merged commit a11e8f1 into nrwl:master Oct 3, 2023
6 checks passed
@Coly010 Coly010 deleted the fix/module-federation-dev-servers branch October 4, 2023 08:43
FrozenPandaz pushed a commit that referenced this pull request Oct 4, 2023
Co-authored-by: Jason Jean <jasonjean1993@gmail.com>
(cherry picked from commit a11e8f1)
@github-actions
Copy link

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 10, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants