Open NikkiDreams opened 8 years ago
I'm getting the same error, and it seems to be resulting mostly from https://github.com/tjwebb/sails-permissions/commit/696b56418442efa0a751c71af5f8f0b8fda3f910, though there do seem to be a couple other ES2105 style imports. It seems it might be a good idea to use the old node-style require() syntax for the time being?
+1
add to .babelrc
following strings
{
"presets": ["es2015"]
}
I ran into this issue and guessing it's related. Here's my explanation: https://github.com/tjwebb/sails-permissions/issues/198#issuecomment-177629496
I just did a fresh install in my Sails project. Starting server results in this error. I'm not sure how much E6 support is in Sails right now if any. Our apps are full E6 compliant or nearly so. I have tried several options using a transpiler. But have not gotten past this one yet.
My project dependencies include: Node 0.12.7 "babel-core": "^6.1.2", "bcrypt": "^0.8.5", "ejs": "^2.3.4", "lodash": "^3.10.1", "passport": "^0.3.0", "passport-jwt": "^1.2.1", "passport-local": "^1.0.0", "pluralize": "^1.2.1", "sails": "^0.12.0-rc3", "sails-auth": "^2.1.1", "sails-permissions": "^2.1.8",