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

[ERROR] No matching export in "node-modules-polyfills:url" for import "URL" #258

Closed
Taewan-P opened this issue May 1, 2024 · 2 comments
Closed

Comments

@Taewan-P
Copy link

Taewan-P commented May 1, 2024

Hello,

So I am using this package to auto deploy to my Workers, but the error written in the title occurs and fails. Just using wrangler deploy in my local computer works without a problem.

As I am using "node:url" package, so I added node_compat = true in wrangler.toml.

  ▲ [WARNING] Enabling Node.js compatibility mode for built-ins and globals. This is experimental and has serious tradeoffs. Please see https://github.com/ionic-team/rollup-plugin-node-polyfills/ for more details.
  
  
  
  ✘ [ERROR] No matching export in "node-modules-polyfills:url" for import "URL"
  
      src/util/handleOrigin.ts:1:8:
        1 │ import {URL} from "node:url";
          ╵         ~~~
  
  
  ✘ [ERROR] Build failed with 1 error:
  
    src/util/handleOrigin.ts:1:8: ERROR: No matching export in "node-modules-polyfills:url" for import "URL"

So as I'm writing the issue, eventually I solved it by manually upgrading the wrangler version used in this action by adding preCommands to 3.53.0. It seems like the wrangler version that this action is using is the issue. (This action is using 3.13.2 right now)

If the wrangler version is just the case, may I upload an PR that changes DEFAULT_WRANGLER_VERSION to the latest version?

@Taewan-P
Copy link
Author

Taewan-P commented May 5, 2024

Looking at the open Pull Requests, this will be solved when #238 is merged

@nprogers
Copy link

@Taewan-P thanks for filing this issue, we are tracking in #261

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants