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.

Webpack 4 / Angular 6 support

See original GitHub issue

Hey there,

Maybe you already know, but this library doesn’t work anymore with WebPack 4 and Angular 6. Here’s what I get when trying to ng serve.

image

This is most likely related to the big changes that happened in WebPack 4. Is there any plans to upgrade this? If not on your end, I might peek at it if I don’t found any other alternatives.

Thanks.

My CLI infos are the following :

Angular CLI: 6.0.0-rc.2
Node: 8.11.1
OS: win32 x64
Angular: 6.0.0-rc.3
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router

@angular/cdk: 6.0.0-rc.1
@angular/cli: 6.0.0-rc.2
@angular/flex-layout: 5.0.0-beta.14
@angular/material: 6.0.0-rc.1
@angular-devkit/architect: 0.5.4
@angular-devkit/build-angular: 0.5.4
@angular-devkit/build-optimizer: 0.5.4
@angular-devkit/core: 0.5.4
@angular-devkit/schematics: 0.5.4
@ngtools/json-schema: 1.1.0
@ngtools/webpack: 6.0.0-rc.2.4
@schematics/angular: 0.5.4
@schematics/update: 0.5.4
typescript: 2.7.2
webpack: 4.5.0

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:3
  • Comments:6

github_iconTop GitHub Comments

2reactions
entencommented, Apr 28, 2018

About error TS2304: Cannot find name ‘module’: do you think may it due to a missing typescript definition?

Can you try to npm install --save-dev @types/node@~8.9.4 @types/webpack-env@^1.13.6 and add the directive below in your src/typings.d.ts?

///<reference types="webpack-env" />
2reactions
ghostcommented, Apr 26, 2018

I’m reproducing this error too. Angular 6 will be out soon.

I fixed it by adding declare var module: {}; above the module line in main.ts

However, it reloads the window on scss inline-template style.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Angular 6 With Webpack - Medium
Webpack is module builder with advanced capabilities such as dev-servers and hot module replacements. A few configurations are required for the ...
Read more >
JavaScript Demos Using Webpack 4 With Angular 6.1.7 And ...
Ben Nadel updates his JavaScript demos project to start using Webpack 4. This will allow his Angular 6+ demos to be compiled using...
Read more >
How to configure Webpack 4 with Angular 7: a complete guide
How to setup an Angular 7 basic application, from scratch · How to configure webpack for development mode (Just-in-Time compilation) · How to ......
Read more >
Angular 6-cli with Webpack 4 - Stack Overflow
I'm trying to set up a simple angular 6 project with webpack 4 and I'm looking for a simple guide on how to...
Read more >
Webpack: an introduction - ts - GUIDE - Angular
Webpack roams over your application source code, looking for import statements, building a dependency graph, and emitting one or more bundles. With plugins...
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