Closed studiollama closed 8 years ago
I have the same issue. The core_1.View
part is fixed with the latest commit (e52d84). The second part is not. I've found that commenting out lines 228-232 in node_modules/angular2-meteor-accounts-ui/login-buttons.js
eliminates the error, but I'm guessing from the code that that also disables an update when you change css files?
Have you tried the latest version of the tutorial? it has been updated to Meteor 1.3 and we also fixed a few issues with this npm package
On my own app I'm still seeing:
Unable to resolve some modules:
"!!./../node_modules/css-loader/index.js!./../node_modules/less-loader/index.js!./login-buttons.less" in
/C/Users/twastvedt/Documents/Zahner/Alfred-Zahner/az-app/node_modules/angular2-meteor-accounts-ui/login-buttons.js
(web.browser)
right before the app starts. The app still starts successfully though.
I also still see that unable to resolve modules. However the core_1.View issue is gone, though I needed to go into login-buttons.d.ts and remove import { Tracker } from 'meteor/tracker'; as I get typescript errors in my ide due to meteor being the old Atmosphere package I assume.
I just put up a test repo for an issue in barbatus:typescript and added a branch that, for me, throws the error with this package: https://github.com/twastvedt/barbatus-typescript-bug-demo/tree/angular2-meteor-accounts-ui-bug.
Already fixed so it sound weird... actually caused by the fact that Angular 2 removed @View
and all it's properties moved to @Component
, you can see that we already fixed it:
https://github.com/Urigo/angular2-meteor-accounts-ui/blob/master/modules/login-buttons.ts#L13-L18
And also, in the compiled file: https://github.com/Urigo/angular2-meteor-accounts-ui/blob/master/build/login-buttons.js#L170-L175
Please make sure that you have the latest version and that you import the files from the root folder only and not the "TS" files from the modules
directory.
@dotansimha Yes that part is fixed, as both @studiollama and I mentioned above. The other error we were seeing, though, is still there:
Unable to resolve some modules:
"!!./../node_modules/css-loader/index.js!./../node_modules/less-loader/index.js!./login-buttons.less" in
/C/Users/twastvedt/Documents/Zahner/Alfred-Zahner/az-app/node_modules/angular2-meteor-accounts-ui/login-buttons.js
(web.browser)
I have the same issue as @twastvedt and @studiollama . I try to complete the Socially tutorial, but am stuck in chapter 8. I updated meteor to version 1.3.2.4 for my packages. I was having real fun with meteor as a newbie, but then I ran into trouble with the tsconfig.json, and packages. Wish it was just as easy, as was presented on Vegas. Though am sure I will get there.
For the tutorial I needed to download and use a custom meteor typings file. It was recommended in the Tutorial to downloaded the typing file from this location:
Meteor error ` Unable to resolve some modules:
"!!./../node_modules/css-loader/index.js!./../node_modules/less-loader/index.js!./login-buttons.less" in /Users/Tony/Library/Mobile Documents/com~apple~CloudDocs/Software/Development/Atom/seeds/socially/node_modules/angular2-meteor-accounts-ui/login-buttons.js (web.browser)
If you notice problems related to these missing modules, consider running:
meteor npm install --save !!.
`
tsconfig.json ` { "atom": { "rewriteTsconfig": false }, "compilerOptions": { "experimentalDecorators": true, "module": "commonjs", "target": "es5", "isolatedModules": false, "moduleResolution": "node", "emitDecoratorMetadata": true, "removeComments": false, "noImplicitAny": false, "sourceMap": true }, "files": [ "typings/main.d.ts", "typings/meteor.d.ts", "typings/party.d.ts" ] }
Folder structure
socially/ ├── client ├── collections ├── node_modules ├── old ├── package.json ├── server ├── tsconfig.json └── typings
Installed packages
meteor list
`
same problem. any updates?
I struggle for a few days with this issue now. I reviewed the code on the Github repository of @Urigo with my own code, and I could not find an issue in mine.
Clone of my code on GitHub Github Code Repository
Here I found a similar issue. Issue angular2-pagination
After digging into the code of
node_modules/angular2-meteor-accounts-ui/login-buttons.js
I think that the code block, lines 225 - 236 is responsible for the error i got. When I looked again at the error, I saw that I possibly needed the NPM package css-loader. The package was not present in my node_modules directory, I installed the package and got unexpected result.
meteor npm install --save css-loader
I can see now the login form with buttons and is fully functional. The error is still present, but I'm happy I can get to the next step of the tutorial. A better description of my issue can be found on GitHub.
I can also report error:
Unable to resolve some modules:
"!!./../node_modules/css-loader/index.js!./../node_modules/less-loader/index.js!./login-buttons.less"
in
/home/milos/devel/recnik/node_modules/angular2-meteor-accounts-ui/login-buttons.js
(web.browser)
If you notice problems related to these missing modules, consider running:
meteor npm install --save !!.
But the module works.
Same here, installing css-loader manually makes no difference.
if you look in ./login-buttons.js, you will find that code with path !!./../node_modules/css-loader...
is actually wrapped inside a false if body.
This output from webpack's style-loader, and it is checking HMR , somehow meteor/typescript compiler is parsing the path shouldn't be reach.
And I think it is totally ok to ignore this error right now, and my workaround is comment out line 225~236 in ./login-button.js
if (false) {
//..
}
Just tested the package now. The package works great with a new, clean project with all the up-to-date packages. The import warning you get caused by Meteor that tried to understand the WebPack imports - but he actually can't. The package works - but needs some cleanup.
I'm closing this issue since it's not an error, and the "View" error was resolved long ago. Please open a new issue if you still having a troubles - I opened an issue to cleanup and remove the WebPack errors. (https://github.com/Urigo/angular2-meteor-accounts-ui/issues/12)
I get this error after updating to the newest version of angular2-meteor and angualr2 beta.12:
Uncaught TypeError: core_1.View is not a function(anonymous function) @ lang.ts:479(anonymous function) @ lang.ts:479webpack_require__ @ lang.ts:479c @ lang.ts:479meteorInstall.node_modules.angular2-meteor-accounts-ui.login-buttons.js @ lang.ts:479fileEvaluate @ modules-runtime.js?hash=939c79d…:158require @ modules-runtime.js?hash=939c79d…:92(anonymous function) @ lang.ts:479webpack_require @ lang.ts:479(anonymous function) @ lang.ts:479webpack_require__ @ lang.ts:479(anonymous function) @ lang.ts:479meteorInstall.node_modules.angular2-meteor-accounts-ui.index.js @ lang.ts:479fileEvaluate @ modules-runtime.js?hash=939c79d…:158require @ modules-runtime.js?hash=939c79d…:92meteorInstall.client.parties-list.parties-list.component.ts @ parties-list.component.ts:8fileEvaluate @ modules-runtime.js?hash=939c79d…:158require @ modules-runtime.js?hash=939c79d…:92(anonymous function) @ parties.ts:16
I'm also getting this when starting the meteor server:
"!!./../node_modules/css-loader/index.js!./../node_modules/less-loader/index.js!./login-buttons.less" in /E/Users/Matt/Documents/Meteor/socially/socially/node_modules/angular2-meteor-accounts-ui/login-buttons.js (web.browser)
I noticed you did some updates that say updating to the newest version. But I have deleted the node package and re installed it, so I believe I have the most recent version.