-
Notifications
You must be signed in to change notification settings - Fork 45
[BUG][@opentelemetry] Could not resolve "../platform" #219
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
Comments
Thanks a bunch for the issue @NayamAmarshe, I also noticed this issue but I wasn't sure if it was specific to the app I was working on, good to know that it's a general issue It would really be great to have a minimal repro for this 😓 anyways I'll look into this 🙂 |
This comment was marked as outdated.
This comment was marked as outdated.
Hi, I'm currently facing the same issue with the error:
Any updates or workarounds would be greatly appreciated. Thanks in advance! |
What help us help you it's if you can submit a repository containing a minimal repro for the issue. |
Thanks for the response @vicb ! I've created a minimal repository for the issue. You can find it here: https://github.com/shahadpichen/opentelemetry-issue. Please let me know if you need any further details. |
hi there, ive come across the same issue, and we have similar tech stacks, the problem is caused by |
Also got same issue with this working with trigger.dev. Solved it like Aries with removing all dependencies in lockfile and used npm ci (instead of npm i). However I assume this means that I need to patch the lock-file each time I install a new package. @vicb Is there any possibility to resolve this by using some older version of the adapter? |
Thanks for the repro @shahadpichen. I now understand how this happen, I only need to figure out why and then the proper fix. A simple patch of -const platform_1 = require("../platform");
-const version_1 = require("../version");
-const semver_1 = require("./semver");
+const platform_1 = require("../platform/index.js");
+const version_1 = require("../version.js");
+const semver_1 = require("./semver.js"); |
A quick way to unblock ppl here is using: WRANGLER_BUILD_CONDITIONS="" WRANGLER_BUILD_PLATFORM="node" pnpm wrangler dev
WRANGLER_BUILD_CONDITIONS="" WRANGLER_BUILD_PLATFORM="node" pnpm wrangler deploy We'll work on a proper fix in the coming days |
Can I copy your repo into i.e. does it contain any code that you do not want shared in the OpenNext repo? |
Hopefully #302 should fix the issue, you can try by installing the adapter at Please report your experiences, Thanks! |
Yah sure 👍 |
Uh oh!
There was an error while loading. Please reload this page.
Describe the bug
I'm using firebase + Next.js 14 API Route Handlers. I've added
force-dynamic
to all the required routes and pages but when I donpm run preview:worker
it throws the following error:Steps to reproduce
npm run preview:worker
Expected behavior
It should start the dev server
@opennextjs/cloudflare version
0.3.3
Wrangler version
3.99.0
next info output
Additional context
No response
The text was updated successfully, but these errors were encountered: