Skip to content

Common Erros

Gabriel Lima edited this page Nov 9, 2024 · 1 revision

Common Errors

Error: ModuleTransformConfig: Invalid fileToTransform...

If you encounter the error message:

Error Screenshot

This error typically occurs when PWA Studio doesn’t recognize the @devgfnl module as a trusted vendor. To fix this, add @devgfnl to the trusted-vendors list in your package.json file.

Solution

  1. Open your project’s package.json file in the root directory.
  2. Under the pwa-studio configuration, make sure the trusted-vendors array includes @devgfnl. If the array isn’t present, add it as shown below.

Your updated configuration should look like this:

{
  "pwa-studio": {
    ...
    "trusted-vendors": [
      "@devgfnl"
    ]
  }
}

Adding @devgfnl to the trusted-vendors list allows PWA Studio to properly handle transformations for files provided by this module, resolving the error.

Clone this wiki locally