JavaScriptServices icon indicating copy to clipboard operation
JavaScriptServices copied to clipboard

reflect-metadata is missing in package

Open shivakb opened this issue 10 years ago • 7 comments

When i start build the application the error is throwing

ERROR in ./ClientApp/boot-client.ts Module not found: Error: Cannot resolve module 'reflect-metadata' in /Users/Andrew/Projects/myYoApp/ClientApp @ ./ClientApp/boot-client.ts 4:0-27

shivakb avatar Aug 03 '16 12:08 shivakb

Is reflect-metadata in your node_modules? You might want to try deleting that folder, and reinstalling npm i

MarkPieszak avatar Aug 03 '16 15:08 MarkPieszak

I've noticed that this happens.. and it is as easy as manually installing. Even though I added reflect metadata to my package.json, when doing things like building docker containers, it fails to install reflect-metadata correctly for whatever reason. (I'm no NPM guru, just that I've encountered this, and have had problems at least with the angular2 template not successfully AUTOMATICALLY installing reflect-metadata)

ronnyek avatar Aug 08 '16 20:08 ronnyek

is there a fix or a work around for this issue?

nklt avatar Aug 08 '16 23:08 nklt

I think npm i reflect-metadata should be fine, but I don't know how to actually fix it for my problems regarding docker

ronnyek avatar Aug 09 '16 16:08 ronnyek

Any ideas on this one? Its starting to become a problem. I'd like to build a prototype of an idea I've got, but cant seem to get templates generated for angular2 spa to be able to run inside of a container because of runtime javascript problem with the location of reflect-metadata.

ronnyek avatar Aug 10 '16 14:08 ronnyek

FYI I just installed latest node/npm, installed generators and ran generator from scratch for new angular2 spa, and it worked without a hitch, even in building my docker containers... maybe its a npm version >3 thing

ronnyek avatar Aug 11 '16 16:08 ronnyek

Yep, I just remembered we already knew about this (see #82) :)

Sorry I didn't remember that earlier - could have saved you some trouble...

SteveSandersonMS avatar Aug 16 '16 00:08 SteveSandersonMS