-
Notifications
You must be signed in to change notification settings - Fork 227
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
Local import as symblink in node_module not added in .dist/node_module #272
Comments
@MaximeLozach Did you ever get this resolved? I'm running into this same issue. Seems this plugin doesn't work with symlinked node_modules packages. |
Well not really. |
Same issue. I have a local symlinked package that is not included in the build package. |
I ended up forking the package and using the fs.copySync(
path.resolve('node_modules'),
path.resolve(path.join(BUILD_FOLDER, 'node_modules')),
{
dereference: true,
}
) Ironically, my forked version ended up being symlinked. |
Hi,
I have some import in my project that depends on local commons module shared between my different functions. I don't want to put them on public npm and don't have some kind of nexus.
I import my local common module like this :
Until now I was with plain JS and I had no issue with serverless. My node_module seems to be well imported with the symlink of my local modules.
I now try to integrate TS, and so I added your plugin. But when I deploy, at runtime I've got error as my import to my local module can't be found.
In S3 where the code is store for my function, I can see that
.dist/node_module
is missing my local module.The text was updated successfully, but these errors were encountered: