Skip to content

Commit

Permalink
changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh-Walker-GM committed Sep 23, 2024
1 parent 6b1aa0a commit 6d4ca72
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .changesets/11593.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
- Fix storybook-vite not starting when `auth.ts` contains named imports after `createAuth` (#11593) by @Philzen

This change fixes an issue with our internal storybook mocks. Previous to this you might find that your storybook would fail with an error like:

```
3:49:51 PM [vite] Internal server error: Transform failed with 1 error:
…/web/src/auth.ts:2:9: ERROR: Expected identifier but found ","
Plugin: vite:esbuild
File: …/web/src/auth.ts:3:6
Expected identifier but found ","
1 | import { createAuthentication as createAuth } from '@redwoodjs/testing/dist/web/mockAuth.js'
2 | import { , createDbAuthClient } from '@redwoodjs/auth-dbauth-web';
| ^
3 | const dbAuthClient = createDbAuthClient();
4 | export const {
```

This was due to a bug in our handling of imports which this change fixes.

0 comments on commit 6d4ca72

Please sign in to comment.