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
Getting error in aliased import paths in package #563
Comments
Is this with the package.json |
Thanks @emmatown I only did it on tsconfigs. But, I tried it on the imports field on package.json just now after you mentioned it. Unfortunately, it's still giving me an error. Here's a reproduction of the package.json This is added on the workspace level, and not on the root.
node version: 19.2.0 |
The "imports": {
"#package/path/to/component/*": "./src/path/to/component/*.ts"
}, (Note this requirement isn't a Preconstruct-specific thing, this is just how the |
I see. Let me try it then. Thanks for you guidance 👍 |
Hi,
Is there a way to resolve this error when using aliased import paths?
"{import}" is imported by "{path}" but the package is not specified in dependencies or peerDependencies
import { component } from '#path/to/component';
I have an import statement which get resolved through
tsconfig
andeslint
but when I runpreconstruct build
I get an error.Thank you
The text was updated successfully, but these errors were encountered: