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

serverless-plugin-browserifier & serverless-plugin-typescript #9

Closed
kvarela opened this issue Sep 14, 2018 · 1 comment
Closed

serverless-plugin-browserifier & serverless-plugin-typescript #9

kvarela opened this issue Sep 14, 2018 · 1 comment

Comments

@kvarela
Copy link

kvarela commented Sep 14, 2018

I'm experiencing an error on sls package trying to have both of these plugins active in my project. It appears to be looking for my .serverless dir inside my .build dir, even though they are both at the root of my project. If I run either plugin without the other, everything works fine. Any ideas how to fix?

Here's the end:

Serverless: Packaging service...

  Error --------------------------------------------------

  ENOENT: no such file or directory, lstat '/Users/home/roam/backend/.build/.serverless'

     For debugging logs, run again after setting the "SLS_DEBUG=*" environment variable.

  Stack Trace --------------------------------------------

Error: ENOENT: no such file or directory, lstat '/Users/home/roam/backend/.build/.serverless'
    at PluginManager.invoke (/Users/home/.config/yarn/global/node_modules/serverless/lib/classes/PluginManager.js:390:22)
    at PluginManager.run (/Users/home/.config/yarn/global/node_modules/serverless/lib/classes/PluginManager.js:421:17)
    at variables.populateService.then.then (/Users/home/.config/yarn/global/node_modules/serverless/lib/Serverless.js:157:33)
    at runCallback (timers.js:693:18)
    at tryOnImmediate (timers.js:664:5)
    at processImmediate (timers.js:646:5)
    at process.topLevelDomainCallback (domain.js:121:23)
From previous event:
    at Serverless.run (/Users/home/.config/yarn/global/node_modules/serverless/lib/Serverless.js:144:8)
    at serverless.init.then (/Users/home/.config/yarn/global/node_modules/serverless/bin/serverless:43:50)
@nolde
Copy link
Member

nolde commented Sep 16, 2018

Hello @kvarela !

I was under the impression -- considering our exchange in #8 -- that everything was now working as expected. Are you still having problems?

Regarding the issue at hand, I wouldn't expect this two plugins to work together anyway. They both meddle with serverless' packing steps, and should not be used together. As you have said yourself, it works fine by itself, so I do not consider this to be a bug.

Therefore, I am closing this issue. I will not spend time troubleshooting interaction with other plugins with clearly conflicting behaviour. I'll gladly help you get this working by using this plugin and tsify, though, if you are willing to explore this option further.

@nolde nolde closed this as completed Sep 16, 2018
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

2 participants