Code Monkey home page Code Monkey logo

angular-library-to-web-components-demo's People

Contributors

dependabot[bot] avatar marsibarsi avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

angular-library-to-web-components-demo's Issues

Issues with Angular 9

Thanks for providing this example and your awesome work!

I'm currently trying your solution in my ng9 project.
I get tons of warning when command "ng run elements:build:production --aot --main=projects/elements/src/${project}/${component}/compile.ts" is executed and it ends with "ERROR in polyfills-es5.js from Terser Invalid assignment [polyfills-es5.js:1,17]"

Any idea what causes this issue and how to fix it?

Error with `elements-webpack.config.js`

Just for notice.

const uuidv1 = require('uuidv1');

module.exports = {
  output: {
    jsonpFunction: 'myElements-' + uuidv1(),
    library: 'elements',
  },
};

Trying to build with this config produces an error:

- Generating browser application bundles (phase: setup)...An unhandled exception occurred: Invalid configuration object. Webpack has been initialized using a configuration object that does not match the API schema.
 - configuration.output has an unknown property 'jsonpFunction'.

To fix it I changed it to:

const uuidv1 = require('uuidv1');

module.exports = {
  output: {
    chunkLoadingGlobal: 'myElements-' + uuidv1(),
    library: 'elements',
  },
};

Error context:

Angular CLI: 15.2.5                                                       
Node: 19.8.1 (Unsupported)                                                
Package Manager: npm 9.5.1                                                
OS: win32 x64                                                             
                                                                          
Angular: 15.2.6                                                           
... animations, common, compiler, compiler-cli, core, elements            
... forms, platform-browser, platform-browser-dynamic, router             
                                                                          
Package                         Version                                   
---------------------------------------------------------                 
@angular-devkit/architect       0.1502.5                                  
@angular-devkit/build-angular   15.2.5                                    
@angular-devkit/core            15.2.5                                    
@angular-devkit/schematics      15.2.5                                    
@angular/cli                    15.2.5                                    
@schematics/angular             15.2.5                                    
ng-packagr                      15.2.2                                    
rxjs                            7.8.0                                     
typescript                      4.9.5

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.