这是indexloc提供的服务,不要输入任何密码
Skip to content

Error while building production with Vite #9

@vui611

Description

@vui611

Hi team,
While building the React app with Vite, I am getting this weird error,

error during build:
RollupError: [commonjs--resolver] Could not resolve entry module "../../node_modules/.pnpm/@magieno+sqlite-client@3.45.1-build5-with-extension-support/node_modules/@magieno/sqlite-client/dist/bundle/sqlite3-opfs-async-proxy.js".

Here is my vite.config.ts

export default defineConfig({
	server: {
		https: true,
		port: 5273,
		headers: {
			'Cross-Origin-Opener-Policy': 'same-origin',
			'Cross-Origin-Embedder-Policy': 'require-corp',
		},
	},
	optimizeDeps: {
		exclude: ['@sqlite.org/sqlite-wasm'],
	},

})

Do you have any how to solve it?
Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions