Skip to content

Add typescript import alias#15

Merged
shin4488 merged 2 commits intomainfrom
add-typescript-import-alias
Sep 27, 2025
Merged

Add typescript import alias#15
shin4488 merged 2 commits intomainfrom
add-typescript-import-alias

Conversation

@shin4488
Copy link
Owner

No description provided.

@shin4488
Copy link
Owner Author

@codex review

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting

Comment on lines +5 to +7
"alias": {
"@/*": "./src/$1"
},

Choose a reason for hiding this comment

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

[P0] Parcel alias syntax prevents resolving @/… imports

The new imports switch everything to the @/… alias, but the corresponding configuration in package.json defines the alias as "@/*": "./src/$1". Parcel’s alias field only supports simple string or ** substitutions (e.g. "@": "./src" or "@/*": "./src/*"); it does not expand $1. As written, Parcel won’t be able to resolve @/App, @/plugins/visualizer, etc., so yarn dev/yarn build will fail immediately with “Cannot resolve '@/…'”. The alias needs to be expressed with Parcel’s syntax (no $1) for the build to work.

Useful? React with 👍 / 👎.

@shin4488 shin4488 merged commit f467ae1 into main Sep 27, 2025
2 checks passed
@shin4488 shin4488 deleted the add-typescript-import-alias branch September 27, 2025 06:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant