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.

Error building Nest-Applications: Please specify a regular expression as the pattern property on the plugin options.

See original GitHub issue

Prerequisites

Expected Behavior

Please describe the behavior you are expecting

Current Behavior

Building Nest Applications is not possible any more after upgrade to v8.8.0. It fails with the following error:

An unhandled exception occurred: license-webpack-plugin: Please specify a regular expression as the pattern property on the plugin options.

Steps to Reproduce

  1. Create a new application with NestJs: ng generate @nrwl/nest:application test-api
  2. Build it with ng build --prod --project test-api
  3. Error occurs.

Context

@nrwl/angular : 8.8.0
@nrwl/cli : 8.8.0
@nrwl/cypress : 8.8.0
@nrwl/eslint-plugin-nx : Not Found
@nrwl/express : Not Found
@nrwl/jest : 8.8.0
@nrwl/linter : 8.8.0
@nrwl/nest : 8.8.0
@nrwl/next : Not Found
@nrwl/node : 8.8.0
@nrwl/react : Not Found
@nrwl/schematics : Not Found
@nrwl/tao : 8.8.0
@nrwl/web : Not Found
@nrwl/workspace : 8.8.0
typescript : 3.5.3

"@nestjs/common": "6.10.1",
"@nestjs/core": "6.10.1",
"@nestjs/platform-express": "6.10.1",
"@nestjs/platform-socket.io": "6.10.1",
"@nestjs/swagger": "3.1.0",
"@nestjs/websockets": "6.5.3",
"@nestjs/schematics": "6.7.0",
"@nestjs/testing": "6.8.3"

Node.js: v12.10.0

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:8
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

7reactions
jon301commented, Nov 20, 2019

Here is a workaround, only if you don’t care about extracting license files.

In your angular.json file, set extractLicenses to false in the production configuration section:

{
  ...
  "build": {
    "configurations": {
      "production": {
        ...
        "extractLicenses": false
        ...
      }
    }
  }
  ...
}
5reactions
mbriggscommented, Nov 22, 2019

Thank you for your report 😃 We will fix the schematic soon

Read more comments on GitHub >

github_iconTop Results From Across the Web

re — Regular expression operations — Python 3.11.1 ...
Source code: Lib/re/ This module provides regular expression matching operations similar to those found in Perl. Both patterns and strings to be searched ......
Read more >
Regex Class (System.Text.RegularExpressions)
Represents an immutable regular expression. ... Main() { // Get the en-US NumberFormatInfo object to build the regular // expression pattern dynamically.
Read more >
jQuery validate: How to add a rule for regular expression ...
addMethod( "regex", function(value, element, regexp) { var re = new ... The pattern function is now the preferred way to do this, making...
Read more >
NSRegularExpression | Apple Developer Documentation
The following tables describe the character expressions used by the regular expression to match patterns within a string, the pattern operators that specify...
Read more >
Documentation: 15: 9.7. Pattern Matching - PostgreSQL
This is not in the SQL standard but is a PostgreSQL extension. ... specifies a character class, just as in POSIX regular expressions....
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