sencha / ext-allshared Goto Github PK
View Code? Open in Web Editor NEWext-allshared
ext-allshared
Not sure when this change occurred, but when using the ExtWebpackPlugin, any error that occurs after processing of the plugin itself, the underlying error is swallowed and the user has no visibility into the problem.
Simple way to replicate this:
Offending code is somewhere in this block
ext-allshared/packages/ext-webpack-plugin/src/index.js
Lines 22 to 37 in 3afcf36
please fix this! We lose countless hours troubleshooting by trial and error since we cant see the underlying problems when performing other webpack configurations.
With the plugin swallowing anything, this is a sample of all you see with vebose enabled:
XXXXXXXX@XXXXXXXX MINGW64 /d/src/XXXXXXX (feature-21377-webpack)
$ npm run watch
> [email protected] watch D:\src\XXXXXXX
> webpack-dev-server --env.browser=no --env.verbose=yes --progress --color
-verbose: FUNCTION _constructor
-verbose: pluginName - ext-webpack-plugin
-verbose: app - i [ext]:
i [ext]: ext-webpack-plugin v7.2.0, Ext JS v7.2.0 Commercial Edition, Sencha Cmd v7.2.0.84, webpack v4.39.3, react v16.12.0
i [ext]: Starting development build for react
-verbose: Building for development, treeshake is no, intellishake is yes
-verbose: FUNCTION _thisCompilation
-verbose: options.script:
-verbose: buildstep: 1 of 1
-verbose: FUNCTION _compilation
10% building 1/1 modules 0 active
node process ended
I recently got myself into ExtJS. Followed the 'Getting started with NPM' and run a fresh modern-app sample. While the sample does seem to run, I noticed the following error.
i [ext]: [ERR] [ERR] Error: spawn /node_modules/@sencha/cmd/dist/sencha EACCES
at Process.ChildProcess._handle.onexit (node:internal/child_process:282:19)
at onErrorNT (node:internal/child_process:477:16)
at processTicksAndRejections (node:internal/process/task_queues:83:21)
My browser endlessly loading the app and this warning appeared on my console
<i> [webpack-dev-middleware] wait until bundle finished: /
I have tried to wait several minutes just in case of Webpack actually bundling assets but the same warning appeared.
Using app.json
, you can disable/change the page output path. Recent changes to ExtWebpackPlugin incorrectly assume that index.html
is in use, and the process bombs if it is not...
Error: ENOENT: no such file or directory, lstat 'D:\XXX\clients\admin\build\production\index.html'
at Object.fs.lstatSync (fs.js:941:11)
at replacizeFileSync (D:\XXX\clients\admin\node_modules\replace\replace.js:140:22)
at module.exports (D:\XXX\clients\admin\node_modules\replace\replace.js:80:17)
at ExtWebpackPlugin.postBuildProcess (D:\XXX\clients\admin\node_modules\@sencha\ext-webpack-plugin\dist\index.js:114:9)
at compiler.hooks.done.tap.stats (D:\XXX\clients\admin\node_modules\@sencha\ext-webpack-plugin\dist\index.js:88:12)
at AsyncSeriesHook.eval [as callAsync] (eval at create (D:\XXX\clients\admin\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:9:1)
at AsyncSeriesHook.lazyCompileHook (D:\XXX\clients\admin\node_modules\tapable\lib\Hook.js:154:20)
app.json snippet
"output": {
"base": "${workspace.build.dir}/${build.environment}",
"page": {
"path": "../../../../Views/Admin/Index.cshtml",
"enable": false
},
}
Hi,
I would like to use ext-webpack-plugin
in my project but I face to some troubles due to a wrong base path in the boostrap.js
. According to the doc, I should be able to change that by using sencha meta command but I didn't find how to use that with the extjs webpack plugin.
Could you provide me some helps, please ?
Thanks
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.