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

run custom.dev may raise error when started #520

Open
FabienArcellier opened this issue Aug 15, 2024 · 1 comment
Open

run custom.dev may raise error when started #520

FabienArcellier opened this issue Aug 15, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@FabienArcellier
Copy link
Collaborator

FabienArcellier commented Aug 15, 2024

@ZBMO has a fork that is up-to-date with master, when it go to src/ui and run npm run custom.dev (from a venv) he get this error.

image

node v20.10.0
npm 10.2.3

Solution

Adding the optimizeDeps.esbuildOptions.target has fixed the issue for @ZBMO

src/ui/vite.config.custom.ts

import vue from "@vitejs/plugin-vue";
import writerPlugin from "./viteWriterPlugin";

export default defineConfig({
	base: "./",
	plugins: [vue(), writerPlugin()],
	includeWriterComponentPath: false,
	define: {
		WRITER_LIVE_CCT: JSON.stringify("yes"),
	},
	publicDir: false,
	optimizeDeps: {
		esbuildOptions: {
			target: "es2022",
		},
	},
@FabienArcellier FabienArcellier added the bug Something isn't working label Aug 15, 2024
@ramedina86
Copy link
Collaborator

Hey @raaymax we'd like to figure out what's a sustainable solution for this and as our resident JS expert we thought you'd be able to figure this out

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants