How to use Angular2 with meteor 1.4


#1

How to work Angular2 with meteor 1.4. I have used this boilerplate https://github.com/bsliran/angular2-meteor-base but its still load the default view of meteor.

Any help would be really appreciated.


#2

I’m not quite sure what you mean by this - that boilerplate seems to work properly for me and is using Angular. Did you:

git clone https://github.com/bsliran/angular2-meteor-base
cd angular2-meteor-base
meteor npm install
meteor

#3

Dear hwillson,

Thanks for your prompt reply. I already did the same steps couple of time but I was failed. when I run meteor it was installing all the packages but suddenly it stop with below errors.

Error: unexpected eof
    at decorate (C:\Users\tariq\AppData\Local\.meteor\packages\meteor-tool\1.4.1
_2\mt-os.windows.x86_32\dev_bundle\lib\node_modules\fstream\lib\abstract.js:67:3
6)
    at Extract.Abstract.error (C:\Users\tariq\AppData\Local\.meteor\packages\met
eor-tool\1.4.1_2\mt-os.windows.x86_32\dev_bundle\lib\node_modules\fstream\lib\ab
stract.js:61:12)
    at Extract._streamEnd (C:\Users\tariq\AppData\Local\.meteor\packages\meteor-
tool\1.4.1_2\mt-os.windows.x86_32\dev_bundle\lib\node_modules\tar\lib\extract.js
:91:35)
    at BlockStream.<anonymous> (C:\Users\tariq\AppData\Local\.meteor\packages\me
teor-tool\1.4.1_2\mt-os.windows.x86_32\dev_bundle\lib\node_modules\tar\lib\parse
.js:51:8)
    at emitNone (events.js:67:13)
    at BlockStream.emit (events.js:166:7)
    at BlockStream._emitChunk (C:\Users\tariq\AppData\Local\.meteor\packages\met
eor-tool\1.4.1_2\mt-os.windows.x86_32\dev_bundle\lib\node_modules\block-stream\b
lock-stream.js:203:10)
    at BlockStream.resume (C:\Users\tariq\AppData\Local\.meteor\packages\meteor-
tool\1.4.1_2\mt-os.windows.x86_32\dev_bundle\lib\node_modules\block-stream\block
-stream.js:58:15)
    at Extract.Reader.resume (C:\Users\tariq\AppData\Local\.meteor\packages\mete
or-tool\1.4.1_2\mt-os.windows.x86_32\dev_bundle\lib\node_modules\fstream\lib\rea
der.js:242:34)
    at Entry.<anonymous> (C:\Users\tariq\AppData\Local\.meteor\packages\meteor-t
ool\1.4.1_2\mt-os.windows.x86_32\dev_bundle\lib\node_modules\tar\lib\parse.js:26
1:8)
    at emitNone (events.js:67:13)
    at Entry.emit (events.js:166:7)
    at Entry.resume (C:\Users\tariq\AppData\Local\.meteor\packages\meteor-tool\1
.4.1_2\mt-os.windows.x86_32\dev_bundle\lib\node_modules\tar\lib\entry.js:93:8)
    at resume (C:\Users\tariq\AppData\Local\.meteor\packages\meteor-tool\1.4.1_2
\mt-os.windows.x86_32\dev_bundle\lib\node_modules\fstream\lib\collect.js:62:16)
    at unblockEntry (C:\Users\tariq\AppData\Local\.meteor\packages\meteor-tool\1
.4.1_2\mt-os.windows.x86_32\dev_bundle\lib\node_modules\fstream\lib\collect.js:4
3:28)
    at Entry.<anonymous> (C:\Users\tariq\AppData\Local\.meteor\packages\meteor-t
ool\1.4.1_2\mt-os.windows.x86_32\dev_bundle\lib\node_modules\fstream\lib\collect
.js:47:9)
    at FileWriter.<anonymous> (C:\Users\tariq\AppData\Local\.meteor\packages\met
eor-tool\1.4.1_2\mt-os.windows.x86_32\dev_bundle\lib\node_modules\fstream\lib\di
r-writer.js:146:11)
    at emitNone (events.js:67:13)
    at FileWriter.emit (events.js:166:7)
    at WriteStream.<anonymous> (C:\Users\tariq\AppData\Local\.meteor\packages\me
teor-tool\1.4.1_2\mt-os.windows.x86_32\dev_bundle\lib\node_modules\fstream\lib\f
ile-writer.js:45:10)
    at emitOne (events.js:77:13)
    at WriteStream.emit (events.js:169:7)
    at C:\Users\tariq\AppData\Local\.meteor\packages\meteor-tool\1.4.1_2\mt-os.w
indows.x86_32\dev_bundle\lib\node_modules\graceful-fs\graceful-fs.js:214:14
    at C:\Users\tariq\AppData\Local\.meteor\packages\meteor-tool\1.4.1_2\mt-os.w
indows.x86_32\dev_bundle\lib\node_modules\graceful-fs\graceful-fs.js:241:16
    at C:\Users\tariq\AppData\Local\.meteor\packages\meteor-tool\1.4.1_2\mt-os.w
indows.x86_32\dev_bundle\lib\node_modules\cordova-lib\node_modules\npm\node_modu
les\graceful-fs\graceful-fs.js:232:16
    at FSReqWrap.oncomplete (fs.js:82:15)

Is there anything which I was missed or need to do ?


#4

You might be running into this known issue:


#5

Dear hwillson,

Thanks for your support. It already works by myself. This time I get the boilerplate from git clone and it works as expected but it was not working when I get this boilerplate through zip file. I don’t no what was the issue but it works finally :slight_smile: