

Astro: Rollup failed to resolve import | Steve Fenton
source link: https://www.stevefenton.co.uk/2022/09/astro-rollup-failed-to-resolve-import/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Astro: Rollup failed to resolve import
This is short reminder to my future self about an error I found in Astro, which defied explanation. This ran find on a local npm run build
, but inside of GitHub actions it failed.
Rollup failed to resolve import "../components/Head/Head.astro"
For better or worse, I solved this by renaming Head.astro
to HtmlHead.astro
.
Either the term Head
conflicts with something, or it doesn’t like the folder and file having the same name, i.e. /Head/Head.astro
.
Know more about this than me? Let me know!
Recommend
-
8
Categories AnalyticsAdobe Analytics Segment ApplicabilityAdobe Analytics makes it super-easy to add segements, with a visual designer t...
-
13
How to find installed text to speech voices on Windows I’m using a Visual Studio Code extension that provides text-to-speech, which I use as part of
-
11
Title case text with MySql I needed to update a WordPress taxonomy on a site with thousands of categories and tags. This is not a task for a human, so I created a bit of a gnarly SQL script to update the MySql table. As you can see...
-
23
What is the optimal number of members for an agile team? This question is rather fascinating, in part because of the misunderstandings that have arisen in respect of the famous George Miller paper about the magical number seven (plus or m...
-
6
Upload all files in a folder to FTP This is the second old-school post this week. Hey, I’m clearing the decks of some odd stuff that I had to do. Today, it’s uploading all files in a folder (but not sub-folders) to FTP, if they have been...
-
43
Run a Bash Script with Arguments in GitHub Actions This is just a quick not on how to run a bash script with parameters in GitHub actions, and how to use the passed argument in the script. GitHub Action Here’s the jobs sec...
-
11
CMA Browsers and Cloud Gaming Response The Web is an amazing open platform, but a few times in the history of The Web we have faced challenges keeping it in great shape. When Microsoft had a browser monopoly with Internet Explorer, they w...
-
9
Running Jekyll on Windows There are three parts to this quick start on running Jekyll on Windows. This assumes you pulled an existing Jekyll repo and want to run it locally. If you want to create something new, there’s a command for that,...
-
9
How to return non-HTML responses from Astro There are some cases in Astro where you need to return a non-HTML response. For example, and XML or JSON file. To do this, create a file...
-
9
Astro paging and listing by category When you have blogs, articles, news, or similar collections of posts in Astro, you can generate paged lists of these items automatically. The mechanism to do this involves two key components. ...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK