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.
![image](https://private-user-images.githubusercontent.com/8895426/294394506-94162d7b-3298-47dd-8d31-f7a78e21bf80.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUzNDczMTksIm5iZiI6MTcyNTM0NzAxOSwicGF0aCI6Ii84ODk1NDI2LzI5NDM5NDUwNi05NDE2MmQ3Yi0zMjk4LTQ3ZGQtOGQzMS1mN2E3OGUyMWJmODAucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDkwMyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA5MDNUMDcwMzM5WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ODgwNmEzYjU4OGEzNjc4Mzg3ZDlmZWIyNmIzM2YyMGRkMGExOTA2MDY0MmEzOTAwZjhmNDRiZDY4YzBhNTc2YiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.K30Sk6i2o3XmBwMwK-hw9y2uEvoVFmNCNDR4RyUQ0mM)
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: