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

Change import path to relative #1289

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

saenyakorn
Copy link

@saenyakorn saenyakorn commented Sep 20, 2023

Description of Change(s):

Absolute path works well when we develop in VSCode (or other editor) since we set baseUrl in tsconfig.json.

But, after bundling with microbundle. It does not change absolute path to relative that cause Typescript cannot infer type as shown in the picture below.

Screenshot 2566-09-20 at 11 21 57 Screenshot 2566-09-20 at 11 23 45

microbundle has an option to resolve path alias call --alias. I tried it so hard, but it did not work. So, I decided to fix this issue with the minimum effort by changing all absolute paths into relative paths


To help get PR's merged faster, the following is required:

[] Updated the documentation
[] Unit/Cypress test covering all cases

Please link to relevant Google Docs or schema.org docs for what you are adding so we can review.

Please have a read of the Contributing Guide for full details.

https://github.com/garmeeh/next-seo/blob/master/CONTRIBUTING.md

@garmeeh
Copy link
Owner

garmeeh commented Oct 28, 2023

Hey @saenyakorn thanks for the PR. I fixed a conflict through GitHub UI and it messed up the yarn lockfile 😓 Would you mind fixing locally and pushing.

Also there were a few new components added since you carried out this work so might be a few more files needing to be updated to relative if you wouldn't mind? 🙏

I will get this merged and released ASAP then!

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.

None yet

2 participants