-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
ember-simple-auth demo not working for me #16219
Comments
After running yarn, the results were: C:\Javascript\Ember9\ember-simple-auth>yarn install It seemed to be complaining about eslint, so I installed that: I decided to address the eslint warnings, by installing eslint I used this one: https://emberobserver.com/addons/ember-cli-eslint b/c it has a very good reputation: #8 out of 100 top add-ins. The README.md file says to install it thus: ember install ember-cli-eslint@4 IN THE PROJECT When it was installing, it asked if I wanted to overwrite two files from ember-simple-auth. I said "Yes." I think I should have said "No", but the program still runs, albeit with an error, which I show at the bottom of this post. Keep reading... I tried to re-install ember-decorators/babel-transforms; it seemed to install OK: C:\Javascript\Ember9\ember-simple-auth>ember install -S @ember-decorators/babel-transforms The $64,000 question: does " C:\Javascript\Ember9\ember-simple-auth>ember s Notice: It is still complaining about the ember-decorators... But wait...there's more! C:\Javascript\Ember9\ember-simple-auth\tests\unit\internal-session-test.js ✖ 1 problem (1 error, 0 warnings) C:\Javascript\Ember9\ember-simple-auth\tests\unit\session-stores\shared\storage-event-handler-behavior.js ✖ 1 problem (1 error, 0 warnings) C:\Javascript\Ember9\ember-simple-auth\tests\unit\session-stores\shared\store-behavior.js ✖ 1 problem (1 error, 0 warnings) Build successful (32650ms) – Serving on http://localhost:4200/ (Author's note: NOW it shows the Auth Demo (despite the above errors). Hurrah! What follows are me trying the app. I was able to login, view the protected page, logout, and the protected page redirected me to the login page, all as expected.) 2018-02-07T01:35:35.796Z 200 OK / |
P.S. Here are my conclusions, which I will test shortly:
|
Hi. Yesterday, I spent hours trying to install ember-simple-auth. I want to see how the demo works.
I am using the following versions
Ember 2.18, node v8.9.4, npm 5.6.0, git version 2.16.1.windows.2, eslint v4.17.0, the current versions of qunit and mocha, yarn, etc. etc.
I followed the instruction on https://github.com/simplabs/ember-simple-auth#readme , beginning with
git clone https://github.com/simplabs/ember-simple-auth.git
The output was
C:\Javascript\Ember7\ember-simple-auth>yarn install
yarn install v1.3.2
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
info [email protected]: The platform "win32" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
[4/5] Linking dependencies...
warning " > [email protected]" has unmet peer dependency "eslint@>= 3".
warning " > [email protected]" has unmet peer dependency "eslint@^2.0.0 || ^3.0.0 || ^4.0.0".
warning " > [email protected]" has unmet peer dependency "sinon@^1.4.0 || ^2.1.0 || ^3.0.0 || ^4.0.0".
[5/5] Building fresh packages...
success Saved lockfile.
But when I tried to do "ember serve", I got
C:\Javascript\Ember7\ember-simple-auth>ember s
DEPRECATION: An addon is trying to access project.nodeModulesPath. This is not a reliable way to discover npm modules. Instead, consider doing: require("resolve").sync(something, { basedir: project.root }). Accessed from: new NPMDependencyVersionChecker (C:\Javascript\Ember7\ember-simple-auth\node_modules\ember-cli-version-checker\src\npm-dependency-version-checker.js:11:33)
WARNING: ember-decorators (used in ember-popper): You have not installed @ember-decorators/babel-transforms. It has been extracted to a separate addon. See instructions for installation: https://github.com/ember-decorators/babel-transforms#readme
ember-getowner-polyfill is not required for Ember 2.3.0 and later, please remove from your
package.json
.The "group" options can only be used with a "testGenerator" option of: qunit,mocha
Error: The "group" options can only be used with a "testGenerator" option of: qunit,mocha
at Function.EslintValidationFilter.create (C:\Javascript\Ember7\ember-simple-auth\node_modules\broccoli-lint-eslint\lib\index.js:205:11)
at Class.lintTree (C:\Javascript\Ember7\ember-simple-auth\node_modules\ember-cli-eslint\index.js:44:19)
at project.addons.reduce (C:\Javascript\Ember7\ember-simple-auth\node_modules\ember-cli\lib\models\addon.js:428:26)
at Array.reduce ()
at Class._eachProjectAddonInvoke (C:\Javascript\Ember7\ember-simple-auth\node_modules\ember-cli\lib\models\addon.js:425:32)
at Class.jshintAddonTree (C:\Javascript\Ember7\ember-simple-auth\node_modules\ember-cli\lib\models\addon.js:1136:35)
at Class.treeFor (C:\Javascript\Ember7\ember-simple-auth\node_modules\ember-cli\lib\models\addon.js:545:23)
at project.addons.reduce (C:\Javascript\Ember7\ember-simple-auth\node_modules\ember-cli\lib\broccoli\ember-app.js:630:25)
at Array.reduce ()
at EmberAddon.addonTreesFor (C:\Javascript\Ember7\ember-simple-auth\node_modules\ember-cli\lib\broccoli\ember-app.js:628:32)
Since then, I've tried installing @ember-decorators/babel-transforms, ESlint, qunit, mocha, broccoli.
"Also," my attempts to install ember-decorators/babel-transforms fail, regard of whether or not I use the "-S" option. I have tried this several times:
WARNING: ember-decorators (used in ember-popper): You have not installed @ember-decorators/babel-transforms. It has been extracted to a separate addon. See instructions for installation: https://github.com/ember-decorators/babel-transforms#readme
After updating "everything," here is the LATEST OUTPUT:
C:\Javascript\Ember8\ember-simple-auth>ember s
DEPRECATION: An addon is trying to access project.nodeModulesPath. This is not a reliable way to discover npm modules. Instead, consider doing: require("resolve").sync(something, { basedir: project.root }). Accessed from: new NPMDependencyVersionChecker (C:\Javascript\Ember8\ember-simple-auth\node_modules\ember-cli-version-checker\src\npm-dependency-version-checker.js:11:33)
WARNING: ember-decorators (used in ember-popper): You have not installed @ember-decorators/babel-transforms. It has been extracted to a separate addon. See instructions for installation: https://github.com/ember-decorators/babel-transforms#readme
The "group" options can only be used with a "testGenerator" option of: qunit,mocha
Error: The "group" options can only be used with a "testGenerator" option of: qunit,mocha
at Function.EslintValidationFilter.create (C:\Javascript\Ember8\ember-simple-auth\node_modules\broccoli-lint-eslint\lib\index.js:205:11)
at Class.lintTree (C:\Javascript\Ember8\ember-simple-auth\node_modules\ember-cli-eslint\index.js:44:19)
at project.addons.reduce (C:\Javascript\Ember8\ember-simple-auth\node_modules\ember-cli\lib\models\addon.js:428:26)
at Array.reduce ()
at Class._eachProjectAddonInvoke (C:\Javascript\Ember8\ember-simple-auth\node_modules\ember-cli\lib\models\addon.js:425:32)
at Class.jshintAddonTree (C:\Javascript\Ember8\ember-simple-auth\node_modules\ember-cli\lib\models\addon.js:1136:35)
at Class.treeFor (C:\Javascript\Ember8\ember-simple-auth\node_modules\ember-cli\lib\models\addon.js:545:23)
at project.addons.reduce (C:\Javascript\Ember8\ember-simple-auth\node_modules\ember-cli\lib\broccoli\ember-app.js:630:25)
at Array.reduce ()
at EmberAddon.addonTreesFor (C:\Javascript\Ember8\ember-simple-auth\node_modules\ember-cli\lib\broccoli\ember-app.js:628:32)
I don't feel like I am getting anywhere. I'd appreciate some advice. Thank you.
The text was updated successfully, but these errors were encountered: