Skip to content

Commit

Permalink
Delete export error message
Browse files Browse the repository at this point in the history
An actionable hint is provided in-context via withastro/astro#4003
  • Loading branch information
natemoo-re authored Jul 21, 2022
1 parent da38aa8 commit 46ce735
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/pages/en/guides/troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,6 @@ Astro provides several different tools to help you troubleshoot and debug your c

Here are some common error messages you might see in the terminal, what they might mean, and what to do about them.

### Transform failed with "Unexpected `export`"

A current limitation in Astro is that `export` statements (other than `getStaticPaths()`) are not supported in `.astro` files.


**Solution**: Move any `export` statements to a `.js` or `.ts` file.

**Status**: Current limitation; a fix may be explored in the future.

**Not sure that this is your problem?**
Check to see if anyone else has reported [this issue](https://github.com/withastro/astro/issues?q=is%3Aissue+is%3Aopen+Unexpected+export)!

### Cannot use import statement outside a module

In Astro components, `<script>` tags are hoisted and loaded as [JS modules](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules) by default. If you have included the [`is:inline` directive](/en/reference/directives-reference/#isinline) or any other attribute in your tag, this default behavior is removed.
Expand Down

0 comments on commit 46ce735

Please sign in to comment.