-
Notifications
You must be signed in to change notification settings - Fork 3
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
resolver not works, is it anything wrong? #3
Comments
I try yarn run v1.22.10
$ parcel build --log-level verbose --detailed-report 10
🚨 Build failed.
@parcel/core: Failed to resolve '@lib' from '....../src/web/app.tsx'
....../src/web/app.tsx:3:26
2 | import ReactDom from 'react-dom';
> 3 |
> | ^
4 | import { sayHello } from '@lib';
5 |
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. |
@qtisan I think it would be better if you could create repo with reproducible example. |
I'm curious, does your intellisense autocomplete |
There's a new version available. Let me know if you're still having issues on it |
Hi, VS code can autocomplete my imports (and if I ctrl+click on them it sends me to the correct file) EDIT: While investigating further on the issue I found this parcel-bundler/parcel#4936 and I can confirm this is the kind of imports I have in my project |
Looks like the issue here might be related to #5 , in which non-src baseUrls weren't resolving. I'll look into this, but do let me know how 0.0.8 fares for you as well. |
One potential issue is that you're including your baseUrl in the path alias. If it were anything other than the current folder |
Should be fixed in 0.0.9 now, tested with a reconstructed environment based on the pasted code. Go ahead and reopen this if the update doesn't fix it. |
I create a simple example for this resolver, but not works, maybe something wrong with version of packages?
it is the details below, need help!
OS: macOS 11.5.2
node: v14.17.0
gist: https://gist.github.com/qtisan/78797db3babf2ebaf01578a6797891c9
Error:
Files:
src/lib/index.ts
src/web/app.tsx
src/web/index.html
.parcelrc
package.json
tsconfig.json
The text was updated successfully, but these errors were encountered: