Coder Social home page Coder Social logo

reactangular's Introduction

Hi there ๐Ÿ‘‹

Anurag's GitHub stats

reactangular's People

Contributors

melcor76 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

reactangular's Issues

angular 9 A platform with a different configuration has been created

I tried to rebuilding your example with angular 9 and @nrwl/workspace 9.4.2
I always got this issue

Uncaught Error: A platform with a different configuration has been created. Please destroy it first.

after running npm run update in your project the same error appeard in your repo as well.
I could only fix this problem by following other examples which are always creating angular applications and compiling them down with ngx-build-plus or cat to one file

here is the application's angular.json which is used as a library (hack)

    "angular-lib-app": {
      "projectType": "application",
      "schematics": {
        "@nrwl/angular:component": {
          "style": "scss"
        }
      },
      "root": "apps/angular-lib-app",
      "sourceRoot": "apps/angular-lib-app/src",
      "prefix": "web-components",
      "architect": {
        "build": {
          "builder": "ngx-build-plus:browser",

I use this build command:

ng build angular-lib-app --single-bundle --prod --output-hashing none

during development:

ng build angular-lib-app --single-bundle --prod --output-hashing none --watch

and add to angular.json angularapp

"scripts": [
   "dist/apps/angular-lib-app/main.js"
] 

and reactapp

"scripts": [
    "node_modules/zone.js/dist/zone.js",
     "dist/apps/angular-lib-app/main.js"
 ]

do you have a working solution in angular 9 which is using a library build?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.