Apm publish: The vue dependency range in the package.json file is invalid: csp


#1

When I try to run apm publish patch/minor I get this error:

The vue dependency range in the package.json file is invalid: csp

Dependencies:

 "dependencies": {
    "long": "2.x",
    "vue": "csp"
  }

I need to use ‘csp’ branch because of ‘eval’ and this works with package dependencies update command. Is there a way to publish the package without removing explicit csp dependency?


#2

Your package.json is wrong.

$ npm install vue@csp --save
$ cat package.json

...
"dependencies": {
  "vue": "^1.0.26-csp"
}
...

Alternatively use vue with the loophole package to allow the new Function() that violates the CSP. See https://github.com/lee-dohm/vue-experiment/blob/master/lib/vue-experiment-view-model.coffee for an example.