cancel
Showing results for 
Search instead for 
Did you mean: 

SmartEdit - angular is not defined

Former Member
0 Kudos

Hello everyone, I hope you all are very well

so, I'm having a problem with smartedit:

in the local environment it works very well but in the production environment i have a blank page when i try to access the smartedit url

I already did the command npm cache clean, update of extensions, checked all extensions

looking at the browser console, I have the following message: angular is not defined why didn't you find the thridparties script that has the angular. (But the file exists, I do not understand the reason for throwing this error)

hybris version of the project is: 6.5.x

Accepted Solutions (0)

Answers (2)

Answers (2)

0 Kudos

I am also doing the similar activity but now i am getting this issues while executing the "npm install" from platform at command prompt.

Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch. Build started 10/2/2019 10:03:16 PM. Project "C:\CX19\hybris\bin\platform\node_modules\grunt-sass\node_modules\node-sass\build\binding.sln" on node 1 (default targets). ValidateSolutionConfiguration: Building solution configuration "Release|x64". MSBUILD : error MSB3428: Could not load the Visual C++ component "VCBuild.exe". To fix this, 1) install the .NET Framework 2.0 SDK, 2) install Microsoft Visual Studio 2005 or 3) add the location of the component to the system path if it is installed elsewhere. [C:\CX19\hybris\bin\platform\node_mod ules\grunt-sass\node_modules\node-sass\build\binding.sln] Done Building Project "C:\CX19\hybris\bin\platform\node_modules\grunt-sass\node_modules\node-sass\build\binding.sln" (default targets) -- FAILED. Build FAILED. "C:\CX19\hybris\bin\platform\node_modules\grunt-sass\node_modules\node-sass\build\binding.sln" (default target) (1) -> (_src_\libsass target) -> MSBUILD : error MSB3428: Could not load the Visual C++ component "VCBuild.exe". To fix this, 1) install the .NET Framework 2.0 SDK, 2) install Microsoft Visual Studio 2005 or 3) add the location of the component to the system path if it is installed elsewhere. [C:\CX19\hybris\bin\platform\node_m odules\grunt-sass\node_modules\node-sass\build\binding.sln] 0 Warning(s) 1 Error(s) Time Elapsed 00:00:00.28 gyp ERR! build error gyp ERR! stack Error: `C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe` failed with exit code: 1 gyp ERR! stack at ChildProcess.onExit (C:\CX19\hybris\bin\platform\node_modules\node-gyp\lib\build.js:262:23) gyp ERR! stack at ChildProcess.emit (events.js:198:13) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12) gyp ERR! System Windows_NT 6.1.7601 gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\CX19\\hybris\\bin\\platform\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library=" gyp ERR! cwd C:\CX19\hybris\bin\platform\node_modules\grunt-sass\node_modules\node-sass gyp ERR! node -v v10.16.3 gyp ERR! node-gyp -v v3.8.0 gyp ERR! not ok Build failed with error code: 1 npm WARN grunt-rename@0.1.4 requires a peer of grunt@~0.4.1 but none is installed. You must install peer dependencies yourself. npm WARN ajv-keywords@2.1.1 requires a peer of ajv@^5.0.0 but none is installed. You must install peer dependencies yourself. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"}) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! node-sass@3.13.1 postinstall: `node scripts/build.js` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the node-sass@3.13.1 postinstall 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: npm ERR! C:\Users\ykumar\AppData\Roaming\npm-cache\_logs\2019-10-02T16_33_19_860Z-debug.log

Any inputs on this, Highly Appreciate.

former_member620692
Active Contributor
0 Kudos

Please try again after installing the smartedit addon

 ant addoninstall -Daddonnames="smarteditaddon" -DaddonStorefront.yacceleratorstorefront="yourstorefront" 

Even if you have already done it earlier, you can try doing it again.

Also, to work with the SmartEdit framework, you must install Grunt. When you run ant npminstall command, npm reads the package.json descriptor and creates the required node_modules directory. It then downloads all the required third-party software including Grunt and its plugins.