Closed laardee closed 8 years ago
CORS plugin is now compatible with Serverless v.0.5. but serverless project install
fails to install plugins.
Hmm, project install should work installing plugins. We've noticed an issue with this not working on Node V5 however. What is the error and which version of Node are you using. We're working on the Node V5 fix.
Yes, it seems to be v5 issue, I tried to install project that has serverless-cors-plugin (v.0.4.1) enabled with node versions 5.0.0 and 5.9.1 but both failed, with v.4.0.0 there was no issues. I have Serverless v.0.5.1 installed.
Here is the error
/usr/local/lib/node_modules/serverless/node_modules/bluebird/js/release/async.js:49
fn = function () { throw arg; };
^
ServerlessError: This plugin could not be found: serverless-cors-plugin
at new ServerlessError (/usr/local/lib/node_modules/serverless/lib/Error.js:17:11)
at Serverless._loadPlugins (/usr/local/lib/node_modules/serverless/lib/Serverless.js:293:17)
at Serverless.loadProjectPlugins (/usr/local/lib/node_modules/serverless/lib/Serverless.js:240:10)
at /usr/local/lib/node_modules/serverless/lib/Serverless.js:77:41
From previous event:
at Serverless.init (/usr/local/lib/node_modules/serverless/lib/Serverless.js:73:25)
at /usr/local/lib/node_modules/serverless/lib/actions/ProjectInstall.js:213:24
From previous event:
at ProjectInstall._initProject (/usr/local/lib/node_modules/serverless/lib/actions/ProjectInstall.js:208:27)
From previous event:
at ProjectInstall.installProject (/usr/local/lib/node_modules/serverless/lib/actions/ProjectInstall.js:110:12)
From previous event:
at /usr/local/lib/node_modules/serverless/lib/Serverless.js:181:31
at Array.reduce (native)
at /usr/local/lib/node_modules/serverless/lib/Serverless.js:180:32
From previous event:
at Serverless._execute (/usr/local/lib/node_modules/serverless/lib/Serverless.js:178:12)
at Serverless.actions.(anonymous function) (/usr/local/lib/node_modules/serverless/lib/Serverless.js:424:20)
at Serverless.command (/usr/local/lib/node_modules/serverless/lib/Serverless.js:393:38)
at /usr/local/lib/node_modules/serverless/bin/serverless:19:16
at tryOnImmediate (timers.js:534:15)
at processImmediate [as _immediateCallback] (timers.js:514:5)
From previous event:
at Object.<anonymous> (/usr/local/lib/node_modules/serverless/bin/serverless:18:4)
at Module._compile (module.js:413:34)
at Object.Module._extensions..js (module.js:422:10)
at Module.load (module.js:357:32)
at Function.Module._load (module.js:314:12)
at Function.Module.runMain (module.js:447:10)
at startup (node.js:142:18)
at node.js:939:3
Add CORS plugin as soon as it is updated to work with Serverless v.0.5.