Skip to content
This repository has been archived by the owner on Jul 19, 2024. It is now read-only.

Module not found: Error: Can't resolve for file:// packages #85

Open
spacem opened this issue Jul 10, 2018 · 0 comments
Open

Module not found: Error: Can't resolve for file:// packages #85

spacem opened this issue Jul 10, 2018 · 0 comments

Comments

@spacem
Copy link

spacem commented Jul 10, 2018

I have a monorepo and in package.json have a local dependancy eg.
"core": "file:../core",

I get this error:

ERROR in ./sample-function/index.js
Module not found: Error: Can't resolve 'core' in 'C:\work\testing\functions\sample-function'
 @ ./sample-function/index.js 2:13-31
 @ ./.funcpack/index.gen.js(node:26204) UnhandledPromiseRejectionWarning: Error: Could not webpack project
    at Command.<anonymous> (C:\work\testing\functions\node_modules\azure-functions-pack\lib\main.js:158:19)
    at Generator.throw (<anonymous>)
    at rejected (C:\work\testing\functions\node_modules\azure-functions-pack\lib\main.js:6:65)
    at <anonymous>

I guess this comes from webpack? Any advice how to get past this?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant