Skip to content

version 3.0.0 - moduleFromFile fileName not working #111

Description

@sverraest

Seems like the fileName is not picked up when using this plugin.
See below, where I for testing purposes a completely fake path, it still just gives an error

Configuration:

externals: [
    'aws-sdk',
    nodeExternals({
      modulesFromFile: {
        fileName: path.join(__dirname, "../../totally-fake-file.json")
      }
    })
  ],
  Error: ENOENT: no such file or directory, open '/my-working-dir/sub1/package.json'

My package.json is in a higher folder and I need to set it explicitly but the path is not being picked up when running this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions