Cannot create Uri using with method
See original GitHub issuemonaco-editor version: 0.15.2 Browser: Chrome OS: Windows
dependencies:
"@angular/animations": "^7.0.3",
"@angular/cdk": "^7.0.4",
"@angular/common": "~7.0.3",
"@angular/core": "~7.0.3",
"@angular/forms": "~7.0.3",
"@angular/http": "~7.0.3",
"@angular/material": "^7.0.4",
"@angular/platform-browser": "~7.0.3",
"@angular/platform-browser-dynamic": "~7.0.3",
"@angular/router": "~7.0.3",
Steps or JS usage snippet reproducing the issue:
const uri: monaco.Uri = new monaco.Uri().with({
path : 'inmemory://abc'
});
Earlier, this used to work. Now it throws an error. Even with all the optional parameters provided.
Error:
Issue Analytics
- State:
- Created 5 years ago
- Comments:12 (2 by maintainers)
Top Results From Across the Web
java.net.URI.create exception - Stack Overflow
Cannot reproduce. Both URI.create() and new URI() throw that exception. In the case of URI.create() it is wrapped in an ...
Read more >URI (Java Platform SE 8 ) - Oracle Help Center
This class provides constructors for creating URI instances from their components or by parsing their string forms, methods for accessing the various ...
Read more >Uri Class (System) | Microsoft Learn
The Uri class defines the properties and methods for handling URIs, including parsing, comparing, and combining. The Uri class properties are read-only; to ......
Read more >Uri | Android Developers
Creates an opaque Uri from the given components. Encodes the ssp which means this method cannot be used to create hierarchical URIs.
Read more >UriComponentsBuilder (Spring Framework 6.0.3 API)
Create a UriComponentsBuilder with one of the static factory methods (such as fromPath(String) or fromUri(URI) ); Set the various URI components through the ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
following is working for me:
import { Injectable } from ‘@angular/core’;
@Injectable() export class SharedService { public activeDropdown: any;
}
How do I resolve ‘@angular/core’ in above code sample? Please help.