AnsweredAssumed Answered

Error: No hook for resolver normal in object ResolverFactory

Question asked by phillip.julian on Jul 12, 2018
Latest reply on Sep 23, 2018 by odoe

Hello.

 

I am encountering this reoccurring error message when attempting to run and compile the template map via the "ArcGIS JS API CLI (Introducing a cli for the ArcGIS API for JavaScript )" and "Maps App for Javascript" (Maps App for JavaScript | ArcGIS for Developers ).

 

Each time I install, the apps appear to be in good working order. However each time I attempt I run and compile via "npm start", I encounter the same error message. I have tried multiple fresh installs, manually re-installing nodes where errors are occurring, and following all recommended steps via the github page, including the recommended install of "Windows-Build-Tools".

 

Has anyone else encountered this issue? I am fairly new to development and npm/cli, so any help would be greatly appreciated. I apologize in advance if this question is not formatted correctly!

 

The full error message (which is consistent and repeatable) is as follows:

 

PS C:\Users\pjulian\documents\projects\ESRI_Test\NewProject> npm start

> NewProject@0.0.1 start C:\Users\pjulian\documents\projects\ESRI_Test\NewProject
> webpack-dev-server --mode development --open

clean-webpack-plugin: C:\Users\pjulian\documents\projects\ESRI_Test\NewProject\dist has been removed.
C:\Users\pjulian\Documents\Projects\ESRI_Test\NewProject\node_modules\webpack-dev-server\bin\webpack-dev-server.js:385
throw e;
^

Error: No hook for resolver normal in object ResolverFactory
at names.forEach.name (C:\Users\pjulian\documents\projects\ESRI_Test\NewProject\node_modules\dojo-webpack-plugin\lib\pluginCompatV4.js:95:13)
at Array.forEach (<anonymous>)
at events.forEach.event (C:\Users\pjulian\documents\projects\ESRI_Test\NewProject\node_modules\dojo-webpack-plugin\lib\pluginCompatV4.js:92:9)
at Array.forEach (<anonymous>)
at Object.tap (C:\Users\pjulian\documents\projects\ESRI_Test\NewProject\node_modules\dojo-webpack-plugin\lib\pluginCompatV4.js:87:9)
at DojoAMDResolverPluginV4.apply (C:\Users\pjulian\documents\projects\ESRI_Test\NewProject\node_modules\dojo-webpack-plugin\lib\DojoAMDResolverPluginV4.js:28:3)
at applyResolverPlugin (C:\Users\pjulian\documents\projects\ESRI_Test\NewProject\node_modules\dojo-webpack-plugin\lib\compat.js:70:39)
at DojoAMDPlugin.apply (C:\Users\pjulian\documents\projects\ESRI_Test\NewProject\node_modules\dojo-webpack-plugin\lib\DojoAMDPlugin.js:48:3)
at requiredPlugins.forEach.plugin (C:\Users\pjulian\documents\projects\ESRI_Test\NewProject\node_modules\@arcgis\webpack-plugin\index.js:93:46)
at Array.forEach (<anonymous>)
at ArcGISPlugin.apply (C:\Users\pjulian\documents\projects\ESRI_Test\NewProject\node_modules\@arcgis\webpack-plugin\index.js:93:21)
at webpack (C:\Users\pjulian\Documents\Projects\ESRI_Test\NewProject\node_modules\webpack\lib\webpack.js:37:12)
at startDevServer (C:\Users\pjulian\Documents\Projects\ESRI_Test\NewProject\node_modules\webpack-dev-server\bin\webpack-dev-server.js:379:16)
at portfinder.getPort (C:\Users\pjulian\Documents\Projects\ESRI_Test\NewProject\node_modules\webpack-dev-server\bin\webpack-dev-server.js:369:5)
at C:\Users\pjulian\Documents\Projects\ESRI_Test\NewProject\node_modules\portfinder\lib\portfinder.js:160:14
at C:\Users\pjulian\Documents\Projects\ESRI_Test\NewProject\node_modules\async\lib\async.js:52:16
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! NewProject@0.0.1 start: `webpack-dev-server --mode development --open`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the NewProject@0.0.1 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:

Any help in identifying the error is greatly appreciated! 

Outcomes