All Questions
875
questions
0
votes
0
answers
17
views
using CSS-Loader, Style-Loader with ngtools is generating TypeError: at ShadowCss.shimCssText (compiler.mjs)
`I am creating Angular V-18 project without CLI and but i cannot find the solution for this one
my package.json
my tsconfig.json
webpack.config.mjs
const __filename = fileURLToPath(import.meta.url); ...
0
votes
0
answers
40
views
Can't use imports with "text!" prefix in my angularjs/webpack application
I'm working on a big and complex angularJs app, and i'm migrating it from Gulp to Webpack. I'm facing a problem that i couldn't solve, basically i have some imports like "define(['text!./Page....
0
votes
0
answers
30
views
CSS files are can't resolve in Migration of Angular JS 1.7 and Angular 17 hybrid model application
[webpack-cli] ModuleNotFoundError: Module not found: Error: Can't resolve css in directoty\src folder
Webpack version is 5.89.0
I am expecting the correct syntax of loading CSS, JS and TS files from ...
0
votes
0
answers
67
views
Unable to load SVG in Angular JS using webpack
I have a code snippet in Angular JS that loads some icon SVG using the following code snippet (in icon.js):
var loadReplaceSvg = function loadReplaceSvg(el, attrs, replace){
import(`images/...
0
votes
1
answer
78
views
Import legacy ES5 bundled javascript library into TypeScript and Webpack based solution without installing dependencies
I've old Angular 1.x app bundled into one, big app.js file (ES5) which attached to index.html
<html ng-app="app">
<body>
<!-- Main view -->
<div ui-view><...
1
vote
1
answer
33
views
ERROR: 'insight-dashboard-erneuerung-settings' is not a known element when implementing lazy loading
I'm trying to set up lazy loading for the Dashboard-module in my Angular project, and I'm encountering an error:
'insight-dashboard' is not a known element:
If 'insight-dashboard' is an Angular ...
0
votes
1
answer
65
views
Running Gojs-Angular in debug mode
Can anyone please explain the steps to run Gojs-angular in debug mode. The Gojs documentation explains to use the raw gojs debug file. But if the project is in Gojs-angular Typescript. How can we load ...
1
vote
3
answers
208
views
Hybrid angularjs/angular app broken due to angular 13+ removal of deployURL
UPDATED 7/6/2023 as I believe I have determined the issue is due to the hybrid nature of my application and not just upgrading angular as I previously assumed.
I have a hybrid angular/angularjs app ...
1
vote
0
answers
86
views
Issues when updating from Angular 11/AngularJS hybrid to Angular 14/ AngularJS hybrid
We are using @angular-builders/custom-webpack in our angular.json file in order to allow a custom webpack config extension. I know that in Angular 12, preprocessing has switched to Webpack 5.
Here is ...
0
votes
0
answers
34
views
how to use webpack to split angularjs controller.js ? it's too long.i want to split with every page.This is my smallest file
This is my controller, I plan to split from the simplest
console.log('load document');
angular.module('app').controller('document', function ($scope, ItemService, UserService, ScopeService, $timeout, ...
4
votes
1
answer
3k
views
migrate AngularJs app from Webpack to Vite
I have an AngularJs app combined with React that I'm trying to migrate from Webpack 4 to Vite.
The majority of the app is AngularJs and recently we started "injecting" React components, ...
0
votes
1
answer
291
views
Building an AngularJS and Vue.js into one app using webpack?
This may seem a bit convoluted, and potentially the answer is "don't do it that way, do it this way" so I'll start with the background of what I am doing. Basically I have a legacy AngularJS ...
0
votes
1
answer
135
views
Override JS function from bundle
My Angularjs website has been compile using webpack.
In the chrome console, i want to override a function from the controller of a specific directive. Is it possible ?
1
vote
0
answers
533
views
How can I pull in an AngularJS app into a React host app Using Single-Spa
I'm hoping someone will be able to help.
I'm trying to use single-spa-angularjs to pull in a legacy AngularJS application into a React app. So the React app is the host. In the same React app, I'm ...
0
votes
1
answer
186
views
Angular:.Invalid configuration object. Webpack has been initialized using a configuration object that does not match the API schema
I just startred programing and in my first project on Angular i tried to use ng serve an then this error come out:
initialized using a configuration object that does not match the API schema.
- ...