You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please find the reproduction example in this codesandbox.
Unfortunately, there is no option to make it writable to the public. To edit, please sign in and fork the sandbox.
Steps to reproduce the bug
Add the following import statement to your code:
import{databaseDefaultSerializer}from"vuefire";
It fails on page loaded.
Expected behavior
The import statement should successfully import the createRecordFromDatabaseSnapshot() function because, in dist/index.d.mts:21 (version 3.1.21, which may vary in other versions), it is defined and exported as databaseDefaultSerializer:
// line 21declarefunctioncreateRecordFromDatabaseSnapshot(/* ... */): /* ... */;// line 726export{/* ... */,createRecordFromDatabaseSnapshotasdatabaseDefaultSerializer,/* ... */};
Actual behavior
An error is thrown with the following message:
Uncaught SyntaxError: The requested module '/node_modules/.vite/deps/vuefire.js?v=05c98cd7' does not provide an export named 'databaseDefaultSerializer'
This error message does not appear in the CodeSandbox console but is shown in the browser console.
Additional Information
A search for databaseDefaultSerializer in dist/index.mjs returns no matches. It appears that the aliasing of createRecordFromDatabaseSnapshot as databaseDefaultSerializer is mistakenly placed within a type export block in src/index.ts:24-30:
Reproduction
Please find the reproduction example in this codesandbox.
Unfortunately, there is no option to make it writable to the public. To edit, please sign in and fork the sandbox.
Steps to reproduce the bug
Expected behavior
The import statement should successfully import the
createRecordFromDatabaseSnapshot()
function because, indist/index.d.mts:21
(version 3.1.21, which may vary in other versions), it is defined and exported asdatabaseDefaultSerializer
:Actual behavior
An error is thrown with the following message:
This error message does not appear in the CodeSandbox console but is shown in the browser console.

Additional Information
A search for
databaseDefaultSerializer
indist/index.mjs
returns no matches. It appears that the aliasing ofcreateRecordFromDatabaseSnapshot
asdatabaseDefaultSerializer
is mistakenly placed within a type export block in src/index.ts:24-30:Should it not be included in a regular export instead?
The text was updated successfully, but these errors were encountered: