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.

Zone Already loaded Angular 6.1.0 // ngx-datatable 13.1.0

See original GitHub issue

I’m submitting a … (check one with “x”)

[x] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, post on Stackoverflow or Gitter

Current behavior Angular SSR --> npm run serve:ssr --> “Zone already loaded”

Expected behavior it should compile and run without an issue

Reproduction of the problem run npm run serve:ssr on an SSR build

What is the motivation / use case for changing the behavior?

This will work on SSR Angular applications

Please tell us about your environment:

Windows, Mac, WebStorm, Express, Node (least)

  • Table version:

13.1.0

  • Angular version: 6.1.0

  • Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]

ALL

  • Language: [all | TypeScript X.X | ES6/7 | ES5] TypeScript 2.7.2

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:2
  • Comments:8

github_iconTop GitHub Comments

2reactions
smitha272commented, Aug 9, 2018

@moshejs @Frosty1604 I am facing this issue as well. I tried upgrading/downgrading ngx-datatable and changing webpack.config.js.

I have a question though, Are either of your applications a Angular Hybrid Application? (Angular 5 and Angularjs used together)?

@amcdnl Can there be a reason to see this error because of using ngx-datatable in a hybrid application? I see issue #1098 that looks similar, and it is open. That’s why wondering.

Really appreciate any help regarding this. TIA!

0reactions
Frosty1604commented, Aug 6, 2018

Thanks but this didn’t help neither. I saw another way to handle this error. You can download the package webpack-node-externals and then in the webpack.server.config.js: const nodeExternals = require('webpack-node-externals');

module.exports = {
    entry: { server: './server.ts' },
    resolve: { extensions: ['.js', '.ts'] },
    target: 'node',
    mode: 'none',
    externals: [nodeExternals()], // change this to nodeExternals()
    output: {
        path: path.join(__dirname, 'dist'),
        filename: '[name].js'
    },
Read more comments on GitHub >

github_iconTop Results From Across the Web

Reorder fails when downgrading from Angular 5 to AngularJS
We are currently migrating from an AngularJS project to Angular 5. ... Zone Already loaded Angular 6.1.0 // ngx-datatable 13.1.0 #1505.
Read more >
node.js - facing error while using angular-datatables
I tried to create data table into my working directory using angular-datatables module. in order to use this angular-datatables module, ...
Read more >
Keywords - @swimlane/ngx-datatable - npm
ngx -datatable is an Angular table grid component for presenting large and complex data.. Latest version: 20.1.0, last published: a month ago ...
Read more >
could not resolve dependency angular - You.com | The AI ...
after doing npm install --force, i got to know about the version mess. somehow, clearing the cache did not help either. wonder why....
Read more >
swimlane/ngx-datatable NPM
ngx -datatable is an Angular component for presenting large and complex data. It has all the features you would expect from any other...
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