marsibarsi / angular-library-to-web-components-demo Goto Github PK
View Code? Open in Web Editor NEWHome Page: https://marsibarsi.github.io/angular-library-to-web-components-demo/native-demo/index.html
Home Page: https://marsibarsi.github.io/angular-library-to-web-components-demo/native-demo/index.html
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
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?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.