Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC

Activities of "fguo"

As I said, I run "npm install [email protected]" on the project folder before running "ng build -prod", but got that error.

I tried exactly "npm install typescript@'>=2.4.2 <2.5.0'" just now, but got "The system cannot find the file specified."

Any further advice?

Yes. I run yarn before build.

I checked the package.json, and it is "typescript": "^2.4.2", so I run npm install [email protected] on the project folder. I run yarn again, and run ng build -prod. This time, I got the error below:

@angular/[email protected] requires typescript@'>=2.4.2 <2.5.0' but 2.6.1 was found instead. Using this version can result in undefined behaviour and difficult to debug problems.

Please run the following command to install a compatible version of TypeScript.

npm install typescript@&#39;&gt;=2.4.2 &lt;2.5.0&#39;

To disable this warning run "ng set warnings.typescriptMismatch=false".

15% building modules 43/50 modules 7 active ...ts\demo\default\base\style.bundle.cssNode#moveTo was deprecated. Use Container#append. Date: 2017-12-04T14:20:55.666Z Hash: 78200bf01224e15c38f4 Time: 33994ms chunk {0} styles.255649cc11201439ef71.bundle.css (styles) 1.64 MB [initial] [rendered] chunk {1} polyfills.3bc34265385d52184eab.bundle.js (polyfills) 86 bytes [initial] [rendered] chunk {2} main.e402deade8b026b7d50e.bundle.js (main) 84 bytes [initial] [rendered] chunk {3} inline.9844d451d37c4464325b.bundle.js (inline) 1.45 kB [entry] [rendered]

ERROR in src/app/admin/tenants/create-tenant-modal.component.ts(75,76): error TS2339: Property 'value' does not exist on type 'number | ((...items: any[]) => number) | (() => string) | (() => any) | (() => any[]) | { <S exte...'. Property 'value' does not exist on type 'number'. src/app/admin/tenants/create-tenant-modal.component.ts(93,54): error TS2339: Property 'isFree' does not exist on type 'number | ((...items: any[]) => number) | (() => string) | (() => any) | (() => any[]) | { <S exte...'. Property 'isFree' does not exist on type 'number'.

Any idea?

I am trying v5.0.4 Core+Angular. The UI part works fine on my local machine, but I got error while publish it with "ng build -prod" as below. Any idea?

ERROR in ./node_modules/rxjs/_esm5/observable/BoundNodeCallbackObservable.js Module build failed: TypeError: Cannot read property 'type' of undefined at Object.getEffectiveTypeAnnotationNode (C:\dev\SNet\angular\node_modules\typescript\lib\typescript.js:9341:17) at assignContextualParameterTypes (C:\dev\SNet\angular\node_modules\typescript\lib\typescript.js:41652:25) at checkFunctionExpressionOrObjectLiteralMethod (C:\dev\SNet\angular\node_modules\typescript\lib\typescript.js:41948:29) at checkExpressionWorker (C:\dev\SNet\angular\node_modules\typescript\lib\typescript.js:42959:28) at checkExpression (C:\dev\SNet\angular\node_modules\typescript\lib\typescript.js:42898:42) at checkExpressionCached (C:\dev\SNet\angular\node_modules\typescript\lib\typescript.js:42779:38) at checkReturnStatement (C:\dev\SNet\angular\node_modules\typescript\lib\typescript.js:45418:54) at checkSourceElement (C:\dev\SNet\angular\node_modules\typescript\lib\typescript.js:46763:28) at Object.forEach (C:\dev\SNet\angular\node_modules\typescript\lib\typescript.js:1506:30) at checkBlock (C:\dev\SNet\angular\node_modules\typescript\lib\typescript.js:44563:16) at checkSourceElement (C:\dev\SNet\angular\node_modules\typescript\lib\typescript.js:46742:28) at checkFunctionExpressionOrObjectLiteralMethodDeferred (C:\dev\SNet\angular\node_modules\typescript\lib\typescript.js:41990:21) at checkDeferredNodes (C:\dev\SNet\angular\node_modules\typescript\lib\typescript.js:46828:25) at checkSourceFileWorker (C:\dev\SNet\angular\node_modules\typescript\lib\typescript.js:46863:17) at checkSourceFile (C:\dev\SNet\angular\node_modules\typescript\lib\typescript.js:46842:13) at Object.forEach (C:\dev\SNet\angular\node_modules\typescript\lib\typescript.js:1506:30) @ ./node_modules/rxjs/_esm5/observable/bindNodeCallback.js 2:0-76 @ ./node_modules/rxjs/_esm5/add/observable/bindNodeCallback.js @ ./node_modules/rxjs/_esm5/Rx.js @ ./src/account/login/validate-two-factor-code.component.ts @ ./src/account/account.module.ngfactory.js @ ./src/$$_lazy_route_resource lazy @ ./node_modules/@angular/core/esm5/core.js @ ./src/main.ts @ multi ./src/main.ts ERROR in ./node_modules/rxjs/_esm5/observable/BoundCallbackObservable.js Module build failed: TypeError: Cannot read property 'type' of undefined at Object.getEffectiveTypeAnnotationNode (C:\dev\SNet\angular\node_modules\typescript\lib\typescript.js:9341:17) at assignContextualParameterTypes (C:\dev\SNet\angular\node_modules\typescript\lib\typescript.js:41652:25) at checkFunctionExpressionOrObjectLiteralMethod (C:\dev\SNet\angular\node_modules\typescript\lib\typescript.js:41948:29) at checkExpressionWorker (C:\dev\SNet\angular\node_modules\typescript\lib\typescript.js:42959:28) at checkExpression (C:\dev\SNet\angular\node_modules\typescript\lib\typescript.js:42898:42) at checkExpressionCached (C:\dev\SNet\angular\node_modules\typescript\lib\typescript.js:42779:38) at checkReturnStatement (C:\dev\SNet\angular\node_modules\typescript\lib\typescript.js:45418:54) at checkSourceElement (C:\dev\SNet\angular\node_modules\typescript\lib\typescript.js:46763:28) at Object.forEach (C:\dev\SNet\angular\node_modules\typescript\lib\typescript.js:1506:30) at checkBlock (C:\dev\SNet\angular\node_modules\typescript\lib\typescript.js:44563:16) at checkSourceElement (C:\dev\SNet\angular\node_modules\typescript\lib\typescript.js:46742:28) at checkFunctionExpressionOrObjectLiteralMethodDeferred (C:\dev\SNet\angular\node_modules\typescript\lib\typescript.js:41990:21) at checkDeferredNodes (C:\dev\SNet\angular\node_modules\typescript\lib\typescript.js:46828:25) at checkSourceFileWorker (C:\dev\SNet\angular\node_modules\typescript\lib\typescript.js:46863:17) at checkSourceFile (C:\dev\SNet\angular\node_modules\typescript\lib\typescript.js:46842:13) at Object.forEach (C:\dev\SNet\angular\node_modules\typescript\lib\typescript.js:1506:30) @ ./node_modules/rxjs/_esm5/observable/bindCallback.js 2:0-68 @ ./node_modules/rxjs/_esm5/add/observable/bindCallback.js @ ./node_modules/rxjs/_esm5/Rx.js @ ./src/account/login/validate-two-factor-code.component.ts @ ./src/account/account.module.ngfactory.js @ ./src/$$_lazy_route_resource lazy @ ./node_modules/@angular/core/esm5/core.js @ ./src/main.ts @ multi ./src/main.ts

I restored Nuget packages. There are only 4 updates waiting (see attached "Nuget Update 1.PNG"). I updated them, but there are still many warning icons left (see attached "Dependencies Warning.PNG"). Another warning is an assembly "System.ComponentModel.DataAnnotations" which is not showed in the attachments.

I tried rebuild solution, unload/reload projects, close/reopen VS, but no help.

I run the solution by F5, it seems running fine. No error popup, and the SwaggerUI shows normal.

Any idea?

Thank you for your prompt response! I missed this step.

I tried to open *.Web.sln for now. It is nothing to do with Mobile development tools, right? I found all projects show a yellow warning icon on Dependencies. Inside of *.Web.Core Dependencies folder, most of Nuget packages show that warning icon(e.g. abp.AspNetCore 3.2.5). Shall I run Nuget to update packages? :?: I remembered it happened before, and updating Nuget packages caused the whole solution crashed., so I am heisted to do that.

Thanks again!

I just download Core+Angular v5.0.4. When I try to open *.All.sln in my VS2017, I got an "Unsupported" message:

This version of Visual Studio is unable to open the following projects. The project types may not be installed or this version of Visual Studio may not support them. ..*.Mobile.Droid*.Mobile.Droid.csproj ..*.Mobile.iOS*.Mobile.iOS.csproj

What I missed or any solution?

Thanks, p.s. My VS2017 is VS Community 2017 version 15.4.5

Question

Does ASP.NET Zero support Slack integration?

I need to pass an message with images/files to Slack from server side, just like sending email with attachments. I wonder if you support this function or have a road map to support it.

Thanks,

Understand. I just feel the "-2147482647" weird.

Thank you for clarification!

When I use DbContext directly to insert an object to an entity, the new inserted object id can be used immediately after SaveChanges(). For example,

MyContext.MyEntity.AddObject(obj); MyContext.SaveChanges(); var id=obj.id; // It is new id.

When I use await _repository.InsertAsync(obj), It returns the same type of "obj" but with id = -2147482647, instead of the new inserted object. Is it by design or a bug?

Great!!! It works and solved my issue. :o

Thank you very much!

Showing 121 to 130 of 254 entries