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

version 3.0.0 - moduleFromFile fileName not working #111

Open
sverraest opened this issue Jul 8, 2021 · 0 comments
Open

version 3.0.0 - moduleFromFile fileName not working #111

sverraest opened this issue Jul 8, 2021 · 0 comments

Comments

@sverraest
Copy link

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.

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

1 participant