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

Issue while building... #223

Closed
logicman opened this issue Feb 10, 2024 · 2 comments
Closed

Issue while building... #223

logicman opened this issue Feb 10, 2024 · 2 comments

Comments

@logicman
Copy link

Nice work on the theme. However, when I run 'yarn run build", I get the following errors....

src/layouts/Base.astro:7:22 - error ts(2307): Cannot find module '@/components/SkipLink' or its corresponding type declarations.

7 import SkipLink from "@/components/SkipLink";
~~~~~~~~~~~~~~~~~~~~~~~
src/layouts/Base.astro:6:20 - error ts(2307): Cannot find module '@/components/layout/Footer' or its corresponding type declarations.

6 import Footer from "@/components/layout/Footer";
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/layouts/Base.astro:5:20 - error ts(2307): Cannot find module '@/components/layout/Header' or its corresponding type declarations.

5 import Header from "@/components/layout/Header";
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
....

@logicman
Copy link
Author

Thanks. I have used your template with this command:
npm create astro@latest -- --template chrismwilliams/astro-theme-cactus

How do I update it with the changes you have made? Sorry, newbie question.

@chrismwilliams
Copy link
Owner

No worries, it's a common question and unfortunately there is no 'right' way, as explained here.

For me personally, I run a heavily modified version of this template, have two separate git remotes and pull in the changes when necessary. Whichever method you take, though, be prepared for some merge conflicts which are inevitable as these things are personalised.

Hope that helps.

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

No branches or pull requests

2 participants