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.

[Angular Universal] mat-datepicker-toggle at SVGSVGElement.setAttribute - the operation is not allowed by Namespaces in XML\nNAMESPACE_ERR

See original GitHub issue

Bug, feature request, or proposal:

Bug

What is the expected behavior?

Calendar renders server side

What is the current behavior?

using

<mat-form-field>
      <input matInput [matDatepicker]="picker" placeholder="Date">
      <mat-datepicker-toggle matSuffix [for]="picker"></mat-datepicker-toggle>
      <mat-datepicker #picker></mat-datepicker>
    </mat-form-field>

throws

Uncaught (in promise): NAMESPACE_ERR: NAMESPACE_ERR (14): the operation is not allowed by Namespaces in XML\nNAMESPACE_ERR: NAMESPACE_ERR (14): the operation is not allowed by Namespaces in XML\n    at Object.exports.NamespaceError (/Users/Patrick/Repos/myapft/node_modules/domino/lib/utils.js:28:45)\n    at SVGSVGElement.setAttribute 

What are the steps to reproduce?

Use the above snippet in any universal applications

What is the use-case or motivation for changing an existing behavior?

to support server side rendering

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

β€œ@angular/animations”: β€œ5.0.0-rc.2”, β€œ@angular/cdk”: β€œ^2.0.0-beta.12”, β€œ@angular/common”: β€œ5.0.0-rc.2”, β€œ@angular/compiler”: β€œ5.0.0-rc.2”, β€œ@angular/compiler-cli”: β€œ5.0.0-rc.2”, β€œ@angular/core”: β€œ5.0.0-rc.2”, β€œ@angular/flex-layout”: β€œ2.0.0-rc.1”, β€œ@angular/forms”: β€œ5.0.0-rc.2”, β€œ@angular/http”: β€œ5.0.0-rc.2”, β€œ@angular/material”: β€œ^2.0.0-beta.12”, β€œ@angular/platform-browser”: β€œ5.0.0-rc.2”, β€œ@angular/platform-browser-dynamic”: β€œ5.0.0-rc.2”, β€œ@angular/platform-server”: β€œ5.0.0-rc.2”, β€œ@angular/router”: β€œ5.0.0-rc.2”, β€œ@angular/service-worker”: β€œ5.0.0-rc.2”,

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
patrickmichalinacommented, Nov 2, 2017

@hamedbaatour looks like it hasn’t been merged in yet

https://github.com/angular/material2/pull/7882

0reactions
angular-automatic-lock-bot[bot]commented, Sep 7, 2019

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

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