-
-
Notifications
You must be signed in to change notification settings - Fork 270
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[plugin-data-persistence]: ERR_PACKAGE_PATH_NOT_EXPORTED, Issue with package import #624
Comments
Three weeks no response :/ I have the same issue. |
Hi there, sorry for such a late reply. We're investigating |
Quick question @came, @KrishnaManohar1997, are you using this in a CJS module or in an ESM one? |
Import is |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
When I'm trying to make use of
plugin-data-persistence
I immediately face an error
I then immediately updated the import to
import { persistToFile } from 'orama/plugin-data-persistence/server'
However facing the following import issue
I have then managed to remove the import error by changing the import path to
import { persistToFile } from '@orama/plugin-data-persistence/dist/server';
This is leading to the following error
I'm using the following command to execute my code
node --trace-warnings --loader ts-node/esm driver.ts
To Reproduce
import { restoreFromFile } from '@orama/plugin-data-persistence/dist/server';
node --loader ts-node/esm driver.ts
Error: ERR_PACKAGE_PATH_NOT_EXPORTE
Expected behavior
I expected the import to work normally, which is failing with importing the package component
persistToFile
Environment Info
Affected areas
Initialization
Additional context
No response
The text was updated successfully, but these errors were encountered: