question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error while serving and building in angular application

See original GitHub issue

I am trying to use this library in angular application. It was working fine for 5.0.0-Rc7. After updating to stable release 5.0.0, I am encountering errors while serving and building the application. Below is the error that is produced while serving the application.

error

I think the reference for types of node is missing and the declaration file for style-options is also missing.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:13 (6 by maintainers)

github_iconTop GitHub Comments

5reactions
dolanmiucommented, Jan 3, 2020

ill make a hot fix, weird

2reactions
c-bibek-shresthacommented, Jan 17, 2020

@dolanmiu The solution by @webcarrot works for the style-options.ts. For the missing type for the Buffer from node, it is still not working. I checked the distribution build and /// <reference types="node" /> is missing from the declaration files which is present in previous builds.

packer.d.ts

Previous releases: /// <reference types="node" /> import { File } from "../../file"; export declare class Packer { static toBuffer(file: File, prettify?: boolean): Promise<Buffer>; static toBase64String(file: File, prettify?: boolean): Promise<string>; static toBlob(file: File, prettify?: boolean): Promise<Blob>; private static readonly compiler; } Current release: import { File } from "../../file"; export declare class Packer { static toBuffer(file: File, prettify?: boolean): Promise<Buffer>; static toBase64String(file: File, prettify?: boolean): Promise<string>; static toBlob(file: File, prettify?: boolean): Promise<Blob>; private static readonly compiler; }

Interesting… Can you tell me which version worked? So I can investigate?

@c-bibek-shrestha

Edit: 5.0.0-Rc7 am I correct?

Yes. I was talking about the *.d.ts file that is generated after you build it. Now it works after including types:["node"] in tsconfig.app.json. Kudos for the library.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Identify and Fix Build and Deployment Errors in Your Angular ...
Many common build errors may occur as a result of rebuilding your app while using ng serve or running ng build or ng...
Read more >
Getting error while building angular code - Stack Overflow
Error is : The build command requires to run in an angular project, but a project definition could not be found. I have...
Read more >
Building and serving Angular apps
When you configure a budget, the build system warns or reports an error when a given part of the application reaches or exceeds...
Read more >
Errors List - Angular
Errors Listlink · NG0100: Expression Changed After Checked · NG01003: Wrong Async Validator Return Type · NG01203: Missing value accessor · NG0200: Circular ......
Read more >
NG0201: No provider for {token} found! - Angular
To fix the error ensure that your service is registered in the list of providers of an NgModule or has the @Injectable decorator...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found