Skip to content
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

Sveltekit project import error (using vite for build) #261

Open
bark4mark opened this issue Feb 6, 2025 · 0 comments
Open

Sveltekit project import error (using vite for build) #261

bark4mark opened this issue Feb 6, 2025 · 0 comments

Comments

@bark4mark
Copy link

[ERROR] server side: Error [ERR_MODULE_NOT_FOUND]: Cannot find module '{app_base}/node_modules/@streamflow/stream/dist/esm/solana/constants' imported from {app_base}/node_modules/@streamflow/stream/dist/esm/solana/lib/derive-accounts.js
    at finalizeResolution (node:internal/modules/esm/resolve:265:11)
    at moduleResolve (node:internal/modules/esm/resolve:933:10)
    at defaultResolve (node:internal/modules/esm/resolve:1157:11)
    at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:383:12)
    at ModuleLoader.resolve (node:internal/modules/esm/loader:352:25)
    at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:227:38)
    at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:87:39)
    at link (node:internal/modules/esm/module_job:86:36) {
  code: 'ERR_MODULE_NOT_FOUND',
  url: 'file:///{app_base}/node_modules/@streamflow/stream/dist/esm/solana/constants'

In my file I am simply importing the lib and trying to instantiate the object like so

import { StreamflowSolana } from '@streamflow/stream'
const solanaClient = new StreamflowSolana.SolanaStreamClient('https://api.mainnet-beta.solana.com')
@bark4mark bark4mark changed the title Sveltekit project import error Sveltekit project import error (using vite for build) Feb 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant