get-windows icon indicating copy to clipboard operation
get-windows copied to clipboard

"mock-aws-s3" is imported by "mock-aws-s3?commonjs-external", but could not be resolved

Open inj-src opened this issue 3 months ago • 0 comments

##This package is trying to import unrelated packages. I am getting this error in my terminal:

"mock-aws-s3" is imported by "mock-aws-s3?commonjs-external", but could not be resolved – treating it as an external dependency. "nock" is imported by "nock?commonjs-external", but could not be resolved – treating it as an external dependency. "aws-sdk" is imported by "aws-sdk?commonjs-external", but could not be resolved – treating it as an external dependency.

This is a vite electron template with only this package installed.

Here is the code:

import { getWindow } from "get-windows";

app.whenReady().then(() => {
  createWindow();
  // Start polling for the active window every second
  setInterval(async () => {
    try {
      const windowInfo = await getWindow();
      if (windowInfo) {
        // Send the active window info to the renderer process
        console.log(windowInfo);
      }
    } catch (error) {
      console.error("Error getting active window:", error);
    }
  }, 5000); // Check every 5000ms (5 seconds)
});

Why is this package trying to import those unrelated packages?

inj-src avatar Sep 28 '25 04:09 inj-src