Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MockServer cannot be instantiated in ts as it is an abstract class #131

Closed
o-liver opened this issue Jun 6, 2024 · 3 comments
Closed

MockServer cannot be instantiated in ts as it is an abstract class #131

o-liver opened this issue Jun 6, 2024 · 3 comments
Assignees
Labels
contribution Valuable Contribution type/examples-samples Related to existing examples/samples, or request for new examples/samples.

Comments

@o-liver
Copy link
Contributor

o-liver commented Jun 6, 2024

When copying this code

const mockServer = new MockServer({
rootUri: sap.ui.require.toUrl("ui5/walkthrough/V2/Northwind/Northwind.svc/")
});

I get the following error:

Cannot create an instance of an abstract class.ts(2511)

How can this be done instead?

@o-liver
Copy link
Contributor Author

o-liver commented Jun 6, 2024

843769

@KvM2
Copy link
Contributor

KvM2 commented Jun 6, 2024

Hi @o-liver, thanks for your contribution! We'll look into it and will get back to you.

@flovogt flovogt self-assigned this Jun 12, 2024
openui5bot pushed a commit to SAP/openui5 that referenced this issue Jun 13, 2024
MockServer was marked as abstract in the constructor JSDoc, but it is not.

Fixes: SAP-docs/sapui5#131

Change-Id: Ifbfc712b6e5dda145fff560f7d51ecd56ccc0b12
openui5bot pushed a commit to SAP/openui5 that referenced this issue Jun 13, 2024
MockServer was marked as abstract in the constructor JSDoc, but it is not.

Fixes: SAP-docs/sapui5#131
SNOW: n/a
CR-Id: 002075125900001972662024
Change-Id: Ifbfc712b6e5dda145fff560f7d51ecd56ccc0b12
(cherry picked from commit b42c668)
openui5bot pushed a commit to SAP/openui5 that referenced this issue Jun 13, 2024
MockServer was marked as abstract in the constructor JSDoc, but it is not.

Fixes: SAP-docs/sapui5#131
SNOW: n/a
CR-Id: 002075125900001972672024
Change-Id: Ifbfc712b6e5dda145fff560f7d51ecd56ccc0b12
(cherry picked from commit b42c668)
openui5bot pushed a commit to SAP/openui5 that referenced this issue Jun 13, 2024
MockServer was marked as abstract in the constructor JSDoc, but it is not.

Fixes: SAP-docs/sapui5#131
SNOW: n/a
CR-Id: 002075125900001972682024
Change-Id: Ifbfc712b6e5dda145fff560f7d51ecd56ccc0b12
(cherry picked from commit b42c668)
openui5bot pushed a commit to SAP/openui5 that referenced this issue Jun 13, 2024
MockServer was marked as abstract in the constructor JSDoc, but it is not.

Fixes: SAP-docs/sapui5#131
SNOW: n/a
CR-Id: 002075125900001972642024
Change-Id: Ifbfc712b6e5dda145fff560f7d51ecd56ccc0b12
(cherry picked from commit b42c668)
openui5bot pushed a commit to SAP/openui5 that referenced this issue Jun 13, 2024
MockServer was marked as abstract in the constructor JSDoc, but it is not.

Fixes: SAP-docs/sapui5#131
SNOW: n/a
CR-Id: 002075125900001972652024
Change-Id: Ifbfc712b6e5dda145fff560f7d51ecd56ccc0b12
(cherry picked from commit b42c668)
@KlattG
Copy link
Contributor

KlattG commented Jun 18, 2024

Fixed as of the next release.

@KlattG KlattG closed this as completed Jun 18, 2024
@KlattG KlattG added contribution Valuable Contribution type/examples-samples Related to existing examples/samples, or request for new examples/samples. labels Jun 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contribution Valuable Contribution type/examples-samples Related to existing examples/samples, or request for new examples/samples.
Projects
None yet
Development

No branches or pull requests

4 participants