-
-
Notifications
You must be signed in to change notification settings - Fork 334
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
Could not resolve "vike-react/config" [plugin vike-esbuild] #1729
Comments
I cannot reproduce. What's your Node.js version? |
node version: v18.20.3 |
Does it work with a newer Node.js version such as Node 20? |
also no, just tried it |
Hm, I cannot reproduce with: pnpm create @batijs/app --react
cd my-app
pnpm i && pnpm run dev Then go to node -v
v20.12.2
pnpm -v
9.4.0 |
here with the error the page just doesn't load, the file it is failing to transpile is the vike-react configs |
You're the only one reporting this issue, so I'm inclined to think it's some kind of issue with your setup? Are you doing something unusual? |
Someone had the exact same issue not so long ago https://discord.com/channels/1105779924658303058/1125707822705938454/1249389970636931264 We didn't find what was wrong, but it seems to work when using yarn... 🤷 |
I also asked other people to try and it only happens here, I'm inclined to think it may have something to do with my version of typescript, but i tried other version and nothing changes |
I will try with yarn |
👍 Keep us updated, would be nice to get to the bottom of this 👀 |
I tried with yarn and no success. |
Hm, I ain't sure how I can debug this without a reproduction. I guess the only thing left we can do here is for you to dig into the code... in case you're up for it:
|
What's your |
/Users/jordy/projects/wisefy-repos/moonpass-io/my-app doesnt seem to have anything unusual |
Yea, nothing unusual.
…On Thu 4. Jul 2024 at 17:43, Jordy Alcides ***@***.***> wrote:
What's your $ pwd? Maybe your path contains some unusual character?
/Users/jordy/projects/wisefy-repos/moonpass-io/my-app
doesnt seem to have anything unusual
—
Reply to this email directly, view it on GitHub
<#1729 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAHVQRQOCCVQCIVZM4ISG4LZKVUS5AVCNFSM6AAAAABKKKIIYSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMBZGI2TSNZZG4>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
I tried two things that worked successfuly:
it seems that something is up with my user, and I don't know what could be. |
Something to do with your environment variables perhaps? |
It’s expected, as you‘re not supposed to import absolute paths.
…On Thu 4. Jul 2024 at 17:50, Jordy Alcides ***@***.***> wrote:
I tried using the absolute path for the config file inside the
node_modules and I get this error:
Screenshot.2024-07-04.at.12.48.12.png (view on web)
<https://github.com/vikejs/vike/assets/9451041/5e89ec44-000c-43ee-8d97-2dac5b9f8dbf>
not sure if it rings any bells to you, but I will try to dig into the code
as you suggested
—
Reply to this email directly, view it on GitHub
<#1729 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAHVQRVOFCUY2VUPWI6SOVTZKVVNPAVCNFSM6AAAAABKKKIIYSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMBZGI3DSMZRHE>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
not sure since only one import is giving any errors so far |
@jordyalcides Actually, if you provide the debug logs |
I'll re-open once I get more information. |
I've a couple of ideas how we can debug this, so definitely let me know if someone else runs into this issue. @jordyalcides Let me know if you're still interested in trying to debug this. |
Sorry, I got caught up at work, we are using vike on this new project here, so I created a new profile on my mac to speed up things, but I still want to understand what is going wrong. I also bumped into a new bug here using the vike-react-query plugin, just reported it. |
I will let you know as soon as I try it here |
👍 Looking forward to it. |
Description
Describe the bug
After starting a new project with the command
pnpm create @batijs/app --react
, installing dependencies and running dev mode the console shows an error[vike][config] Failed to transpile /pages/+config.ts because:
✘ [ERROR] Could not resolve "vike-react/config" [plugin vike-esbuild]
To Reproduce
Steps to reproduce the behavior, run the following commands in order:
pnpm create @batijs/app --react
cd my-app
pnpm i && pnpm run dev
Expected behavior
Run dev mode without any errors
Screenshots
![Screenshot 2024-07-03 at 17 53 27](https://private-user-images.githubusercontent.com/9451041/345619557-a01a8e75-d9cb-40fc-bfb4-4a6b14bb6eab.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA1ODYzMDEsIm5iZiI6MTcyMDU4NjAwMSwicGF0aCI6Ii85NDUxMDQxLzM0NTYxOTU1Ny1hMDFhOGU3NS1kOWNiLTQwZmMtYmZiNC00YTZiMTRiYjZlYWIucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDcxMCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA3MTBUMDQzMzIxWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MmIxZGYxOTg5ZDE4MjIxNTM2ZDczYmJlYTAzNjZiM2M3MmY1ZmQwMjQ5YzkwYWQyNzQxZDM5YTJlNDk5MGZhZCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.okbUX6L3pVagLEUeq3Z3tq8NM59G_mKZ9vjzZIGtgI4)
Additional context
Using macOS Ventura 13.6.6, also I have updated node, pnpm, typescript and all libs versions to match the versions on stackblitz demo (which I know works), still the problem persists. I also tried installing the dependencies from the stackblitz lockfile.
The text was updated successfully, but these errors were encountered: