Skip to content

[BUG] Fix packages with Import failure #17876

@jcortes

Description

@jcortes

Imports using @pipedream/google_tag_manager are not working so a fix is needed and these are the most critical apps that needs to be fixed

[
  {
    "app": "google_tag_manager",
    "packageName": "@pipedream/google_tag_manager",
    "failures": [
      {
        "check": "packageJson",
        "error": "Missing required field: main"
      },
      {
        "check": "mainFile",
        "error": "The \"path\" argument must be of type string. Received undefined"
      },
      {
        "check": "import",
        "error": "The \"paths[2]\" argument must be of type string. Received undefined"
      }
    ]
  },
  {
    "app": "netlify",
    "packageName": "@pipedream/netlify",
    "failures": [
      {
        "check": "import",
        "error": "Import test failed: Command failed: node components/netlify/__import_test__.mjs\nImport failed for @pipedream/netlify: Named export 'NetlifyAPI' not found. The requested module 'netlify' is a CommonJS module, which may not support all module.exports as named exports.\nCommonJS modules can always be imported via the default export, for example using:\n\nimport pkg from 'netlify';\nconst { NetlifyAPI } = pkg;\n\n"
      }
    ]
  },
  {
    "app": "pdfless",
    "packageName": "@pipedream/pdfless",
    "failures": [
      {
        "check": "import",
        "error": "Import test failed: Command failed: node components/pdfless/__import_test__.mjs\nImport failed for @pipedream/pdfless: require() of ES Module /Users/jcortes/git/pipedream/node_modules/@microsoft/kiota-abstractions/dist/es/src/index.js from /Users/jcortes/git/pipedream/node_modules/@pdfless/pdfless-js/index.js not supported.\nInstead change the require of /Users/jcortes/git/pipedream/node_modules/@microsoft/kiota-abstractions/dist/es/src/index.js in /Users/jcortes/git/pipedream/node_modules/@pdfless/pdfless-js/index.js to a dynamic import() which is available in all CommonJS modules.\n"
      }
    ]
  },
  {
    "app": "playwright",
    "packageName": "@pipedream/playwright",
    "failures": [
      {
        "check": "import",
        "error": "Import test failed: Command failed: node components/playwright/__import_test__.mjs\nImport failed for @pipedream/playwright: Cannot find package 'playwright-core@1.41.2' imported from /Users/jcortes/git/pipedream/components/playwright/playwright.app.mjs\n"
      }
    ]
  },
  {
    "app": "puppeteer",
    "packageName": "@pipedream/puppeteer",
    "failures": [
      {
        "check": "import",
        "error": "Import test failed: Command failed: node components/puppeteer/__import_test__.mjs\nImport failed for @pipedream/puppeteer: Cannot find package 'puppeteer-core@21.11.0' imported from /Users/jcortes/git/pipedream/components/puppeteer/puppeteer.app.mjs\n"
      }
    ]
  },
  {
    "app": "shortcut",
    "packageName": "@pipedream/shortcut",
    "failures": [
      {
        "check": "mainFile",
        "error": "Main file not found: shortcut.app.mjs"
      },
      {
        "check": "import",
        "error": "Main file not found: shortcut.app.mjs"
      }
    ]
  },
  {
    "app": "zoho_people",
    "packageName": "@pipedream/zoho_people",
    "failures": [
      {
        "check": "packageJson",
        "error": "Missing required field: main"
      },
      {
        "check": "mainFile",
        "error": "The \"path\" argument must be of type string. Received undefined"
      },
      {
        "check": "import",
        "error": "The \"paths[2]\" argument must be of type string. Received undefined"
      }
    ]
  }
]

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

Status

Ready for QA

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions