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

vike-react/config sets an unknown config Loading when use both vike-react and vike-vue #1812

Closed
vitalybaev opened this issue Aug 17, 2024 · 1 comment
Labels

Comments

@vitalybaev
Copy link

Description

I'm not sure, that it's a bug, but looks strange to me.

I want to try both frameworks (React and Vue) in the single project, but on the different pages. From the documentation it seems that it should work.

But when I made minimal setup with both framework, running pnpm dev I get:

> [email protected] dev /home/vitalybaev/test-vike-vue-with-react
> vite

Error: [vike][Wrong Usage] vike-react/config sets an unknown config Loading
    at handleUnknownConfig (file:///home/vitalybaev/test-vike-vue-with-react/node_modules/.pnpm/[email protected][email protected]/node_modules/vike/dist/esm/node/plugin/plugins/importUserCode/v1-design/getVikeConfig.js:893:15)
    at assertConfigExists (file:///home/vitalybaev/test-vike-vue-with-react/node_modules/.pnpm/[email protected][email protected]/node_modules/vike/dist/esm/node/plugin/plugins/importUserCode/v1-design/getVikeConfig.js:1003:5)
    at getConfigDefinition (file:///home/vitalybaev/test-vike-vue-with-react/node_modules/.pnpm/[email protected][email protected]/node_modules/vike/dist/esm/node/plugin/plugins/importUserCode/v1-design/getVikeConfig.js:980:5)
    at eval (file:///home/vitalybaev/test-vike-vue-with-react/node_modules/.pnpm/[email protected][email protected]/node_modules/vike/dist/esm/node/plugin/plugins/importUserCode/v1-design/getVikeConfig.js:326:31)
    at Array.forEach (<anonymous>)
    at eval (file:///home/vitalybaev/test-vike-vue-with-react/node_modules/.pnpm/[email protected][email protected]/node_modules/vike/dist/esm/node/plugin/plugins/importUserCode/v1-design/getVikeConfig.js:323:21)
    at Array.forEach (<anonymous>)
    at assertUsageGlobalConfigs (file:///home/vitalybaev/test-vike-vue-with-react/node_modules/.pnpm/[email protected][email protected]/node_modules/vike/dist/esm/node/plugin/plugins/importUserCode/v1-design/getVikeConfig.js:315:32)
 ELIFECYCLE  Command failed with exit code 1.

Source Code

Additional information

  • vike 0.4.184
  • vike-react 0.5.2
  • vike-vue 0.8.1

I scaffolded both projects with Bati:

pnpm create bati --react --tailwindcss --biome
pnpm create bati --vue --tailwindcss --biome

then I removed all unnecessary parts, like data fetching or todo page, created two route groups (react) and (vue) where placed respecting configuration.

@brillout
Copy link
Member

Closing in favor of #1813.

@brillout brillout closed this as not planned Won't fix, can't repro, duplicate, stale Aug 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants