Closed JonathanE42 closed 3 years ago
Hi @JonathanE42, that's unfortunate!
First off, you never need to build Umbraco from source unless you plan to contribute. And if you're planning to contribute then that's awesome, thanks in advance!
I am not sure about this error exactly, I don't think I've seen it before. What happens when you build Umbraco in Visual Studio itself?
Hi
I've experienced same issue. Here is the complete powershell output after entering build/build.ps1:
Download NuGet...
Umbraco.Build v0.2.16
Download 7-Zip...
Download VsWhere...
Download Semver...
Download Node...
Umbraco Cms Build
Umbraco.Build v0.2.16
Create clean web.config
Set environment
Restore NuGet
Logging to D:\Umbraco-CMS-8-contrib\build.tmp\nuget.restore.log
Compile Belle
Logging to D:\Umbraco-CMS-8-contrib\build.tmp\belle.log
Set hidden attribute on node_modules
Compile Umbraco
Logging to D:\Umbraco-CMS-8-contrib\build.tmp\msbuild.umbraco.log
Exception calling "RunMethod" with "1" argument(s): "Exception calling "Build" with "0" argument(s): "Exception
calling "CompileUmbraco" with "0" argument(s): "Failed to compile Umbraco.Web.UI."""
At D:\Umbraco-CMS-8-contrib\build\build
.ps1:561 char:5
+ $ubuild.RunMethod($command);
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : ScriptMethodRuntimeException
Error!
MethodInvocationException: Exception calling "RunMethod" with "1" argument(s): "Exception calling "Build" with "0" argument(s): "Exception calling "CompileUmbraco" with "0" argument(s): "Failed to compile Umbraco.Web.UI."""
At D:\Umbraco-CMS-8-contrib\build\build.ps1:561:5
+ $ubuild.RunMethod($command);
MethodInvocationException: Exception calling "Build" with "0" argument(s): "Exception calling "CompileUmbraco" with "0" argument(s): "Failed to compile Umbraco.Web.UI.""
At D:\Umbraco-CMS-8-contrib\build\temp\Umbraco.Build.0.2.16\ps\Boot.ps1:35:5
+ $method.Invoke($arguments)
MethodInvocationException: Exception calling "CompileUmbraco" with "0" argument(s): "Failed to compile Umbraco.Web.UI."
At D:\Umbraco-CMS-8-contrib\build\build.ps1:510:5
+ $this.CompileUmbraco()
RuntimeException: Failed to compile Umbraco.Web.UI.
At D:\Umbraco-CMS-8-contrib\build\build.ps1:197:20
+ if (-not $?) { throw "Failed to compile Umbraco.Web.UI." }
Abort
I thought it would be better to try on a clean project. So I removed and unzipped source again and then tried to build it in Visual Studio and it ended up with 10 Errors and 64 warnings.
Error CS0006 Metadata file 'D:\Umbraco-CMS-8-contrib\src\Umbraco.ModelsBuilder.Embedded\bin\Debug\Umbraco.ModelsBuilder.Embedded.dll' could not be found Umbraco.Web.UI D:\Umbraco-CMS-8-contrib\src\Umbraco.Web.UI\CSC 1 Active
Error CS0173 Type of conditional expression cannot be determined because there is no implicit conversion between 'int' and 'string' Umbraco.Web D:\Umbraco-CMS-8-contrib\src\Umbraco.Web\Routing\PublishedRouter.cs 433 Active
Error CS0006 Metadata file 'D:\Umbraco-CMS-8-contrib\src\Umbraco.Web\bin\Debug\Umbraco.Web.dll' could not be found Umbraco.ModelsBuilder.Embedded D:\Umbraco-CMS-8-contrib\src\Umbraco.ModelsBuilder.Embedded\CSC 1 Active
Error CS0006 Metadata file 'D:\Umbraco-CMS-8-contrib\src\Umbraco.ModelsBuilder.Embedded\bin\Debug\Umbraco.ModelsBuilder.Embedded.dll' could not be found Umbraco.Tests D:\Umbraco-CMS-8-contrib\src\Umbraco.Tests\CSC 1 Active
Error CS0006 Metadata file 'D:\Umbraco-CMS-8-contrib\src\Umbraco.Web\bin\Debug\Umbraco.Web.dll' could not be found Umbraco.Tests D:\Umbraco-CMS-8-contrib\src\Umbraco.Tests\CSC 1 Active
Error CS0006 Metadata file 'D:\Umbraco-CMS-8-contrib\src\Umbraco.Web\bin\Debug\Umbraco.Web.dll' could not be found Umbraco.Web.UI D:\Umbraco-CMS-8-contrib\src\Umbraco.Web.UI\CSC 1 Active
Error CS0006 Metadata file 'D:\Umbraco-CMS-8-contrib\src\Umbraco.Web\bin\Debug\Umbraco.Web.dll' could not be found Umbraco.TestData D:\Umbraco-CMS-8-contrib\src\Umbraco.TestData\CSC 1 Active
Error CS0006 Metadata file 'D:\Umbraco-CMS-8-contrib\src\Umbraco.Tests\bin\Debug\Umbraco.Tests.dll' could not be found Umbraco.Tests.Benchmarks D:\Umbraco-CMS-8-contrib\src\Umbraco.Tests.Benchmarks\CSC 1 Active
Error CS0006 Metadata file 'D:\Umbraco-CMS-8-contrib\src\Umbraco.Web\bin\Debug\Umbraco.Web.dll' could not be found Umbraco.Tests.Benchmarks D:\Umbraco-CMS-8-contrib\src\Umbraco.Tests.Benchmarks\CSC 1 Active
Error CS0006 Metadata file 'D:\Umbraco-CMS-8-contrib\src\Umbraco.Web.UI\bin\Umbraco.Web.UI.dll' could not be found Umbraco.Tests.Benchmarks D:\Umbraco-CMS-8-contrib\src\Umbraco.Tests.Benchmarks\CSC 1 Active
Raised warnings are: 2 from Umbraco.Core 2 from Umbraco.Examine 2 from Umbraco.ModelsBuilder.Embedded 56 from Umbraco.Web 2 from Umbraco.Web.UI
After looking into projects Debug folder, I realized it's empty in following projects: Umbraco.Tests Umbraco.Tests.Benchmarks Umbraco.Web
If I try to manually copy for example Umbraco.Web.dll from Umbraco 8.8.0 to 'D:\Umbraco-CMS-8-contrib\src\Umbraco.Web\bin\Debug\' folder, above numbers will raise up to 49 for errors and 109 for warnings.
Hmm, this is weird.. haven't seen this before! Can either of you please post the contents of the log files in ~\build.tmp\
to see what might be in there that's interesting?
There is nothing but belle.log
. It's from build inside visual studio. If I run the build.ps1
again it might be possible to find more log files.
Would be appreciated if you can find out what's going on here.
### node version is:
v10.15.0
### npm version is:
6.4.1
### clean npm cache
npm : npm WARN using --force I sure hope you know what you are doing.
At D:\Umbraco-CMS-8-contrib\build\build.ps1:118 char:9
+ npm cache clean --force >> $log 2>&1
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (npm WARN using ... you are doing.:String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
### npm install
npm : npm WARN jsdom@16.4.0 requires a peer of canvas@^2.5.0 but none is installed. You must install peer dependencies
yourself.
At D:\Umbraco-CMS-8-contrib\build\build.ps1:122 char:9
+ npm install >> $log 2>&1
+ ~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (npm WARN jsdom@...ncies yourself.:String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
npm
WARN
ws@7.4.1 requires a peer of bufferutil@^4.0.1 but none is installed. You must install peer dependencies yourself.
npm
WARN
ws@7.4.1 requires a peer of utf-8-validate@^5.0.2 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":"ia32"})
npm
WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.1 (node_modules\karma\node_modules\fsevents):
npm
WARN
notsup
SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.1: wanted {"os":"darwin","arch":"any"} (current:
{"os":"win32","arch":"ia32"})
audited 1920 packages in 14.885s
found 739 vulnerabilities (698 low, 1 moderate, 40 high)
run `npm audit fix` to fix them, or `npm audit` for details
>> False 27
### gulp build for version 8.11.1
> @ build D:\Umbraco-CMS-8-contrib\src\Umbraco.Web.UI.Client
> gulp build
[[90m02:06:41[39m] Using gulpfile D:\Umbraco-CMS-8-contrib\src\Umbraco.Web.UI.Client\gulpfile.js
[[90m02:06:41[39m] Starting 'build'...
[[90m02:06:41[39m] Starting 'dependencies'...
[[90m02:06:41[39m] Starting 'js'...
[[90m02:06:41[39m] Starting 'less'...
[[90m02:06:41[39m] Starting 'views'...
JS: ./src/websitepreview/**/*.js -> ../Umbraco.Web.UI/Umbraco/js/umbraco.websitepreview.js
JS: ./src/preview/**/*.js -> ../Umbraco.Web.UI/Umbraco/js/umbraco.preview.js
JS: ./src/installer/**/*.js -> ../Umbraco.Web.UI/Umbraco/js/umbraco.installer.js
JS: ./src/common/filters/**/*.js -> ../Umbraco.Web.UI/Umbraco/js/umbraco.filters.js
JS: ./src/common/resources/**/*.js -> ../Umbraco.Web.UI/Umbraco/js/umbraco.resources.js
JS: [ './src/common/services/**/*.js', './src/utilities.js' ] -> ../Umbraco.Web.UI/Umbraco/js/umbraco.services.js
JS: ./src/common/interceptors/**/*.js -> ../Umbraco.Web.UI/Umbraco/js/umbraco.interceptors.js
JS: [ './src/views/**/*.controller.js', './src/*.controller.js' ] -> ../Umbraco.Web.UI/Umbraco/js/umbraco.controllers.js
JS: [ './src/common/directives/_module.js',
'./src/{common/directives,common/components}/**/*.js',
'./src/views/**/*.{directive,component}.js' ] -> ../Umbraco.Web.UI/Umbraco/js/umbraco.directives.js
LESS: ./src/less/installer.less -> ../Umbraco.Web.UI/Umbraco/assets/css/installer.css
LESS: ./src/less/pages/nonodes.less -> ../Umbraco.Web.UI/Umbraco/assets/css/nonodes.style.min.css
LESS: ./src/less/canvas-designer.less -> ../Umbraco.Web.UI/Umbraco/assets/css/canvasdesigner.css
LESS: ./src/less/belle.less -> ../Umbraco.Web.UI/Umbraco/assets/css/umbraco.css
LESS: ./src/less/rte-content.less -> ../Umbraco.Web.UI/Umbraco/assets/css/rte-content.css
copying ./src/views/**/*.html to ../Umbraco.Web.UI/Umbraco/views/
copying ./src/common/directives/**/*.html to ../Umbraco.Web.UI/Umbraco/views/
copying ./src/common/components/**/*.html to ../Umbraco.Web.UI/Umbraco/views/
copying ./src/installer/steps/*.html to ../Umbraco.Web.UI/Umbraco/views/install/
[[90m02:07:05[39m] Finished 'less' after 24 s
[[90m02:07:23[39m] Finished 'js' after 42 s
[[90m02:07:24[39m] Finished 'views' after 43 s
[[90m02:07:32[39m] gulp-imagemin: Minified 233 images (saved 251 kB - 13.2%)
[[90m02:07:32[39m] Finished 'dependencies' after 51 s
[[90m02:07:32[39m] Starting 'testUnit'...
npm : (node:10424) ExperimentalWarning: The fs.promises API is experimental
At D:\Umbraco-CMS-8-contrib\build\build.ps1:128 char:9
+ npm run build --buildversion=$this.Version.Release >> $log 2> ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: ((node:10424) Ex...is experimental:String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
[[90m02:07:41[39m] Finished 'testUnit' after 8.74 s
[[90m02:07:41[39m] Finished 'build' after 1 min
[32m18 02 2021 02:07:41.951:INFO [karma-server]: [39mKarma v4.4.1 server started at http://0.0.0.0:9876/
[32m18 02 2021 02:07:41.968:INFO [launcher]: [39mLaunching browsers jsdom with concurrency unlimited
[32m18 02 2021 02:07:41.976:INFO [launcher]: [39mStarting browser jsdom
[32m18 02 2021 02:07:42.516:INFO [umbraco-test-suite]: [39mConnected on socket kCA5rdUTYtYE2czeAAAA with id 68202877
create content dialog
[32m√ [39mshows available child document types for the given node
[32m√ [39mcreates content directly when there are no blueprints
[32m√ [39mshows list of blueprints when there are some
[32m√ [39mcreates blueprint when selected
[32m√ [39mskips selection and creates first blueprint when configured to
[32m√ [39mallows blank to be selected
[32m√ [39mcreates blank when selected
[32m√ [39mhides blank when configured to
edit media controller tests
media edit controller init
[32m√ [39mit should have an media object
[32m√ [39mit should have an apps collection
[32m√ [39mit should have added an info app
Content picker controller tests
content edit controller save and publish
[32m√ [39mshould define the default properties on construction
[32m√ [39mshould populate scope.renderModel
[32m√ [39mEach rendermodel item should contain name, id and icon
[32m√ [39mRemoving an item should update renderModel, ids and model.value
[32m√ [39mAdding an item should update renderModel, ids and model.value
[32m√ [39mAdding a duplicate item should note update renderModel, ids and model.value
Drop down controller tests
initialization
[32m√ [39mshould define the default properties on construction
[32m√ [39mshould convert simple array to dictionary
[32m√ [39mshould allow an existing valid dictionary
[32m√ [39mshould not allow a non-array or non-dictionary
RTE controller tests
initialization
[32m√ [39mshould define the default properties on construction
templates editor controller
[32m√ [39mhas ace editor
valEmail directive tests
EMAIL_REGEXP
[32m√ [39mshould validate email
truncate filter
[32m√ [39mempty string as input is expected to give an empty string
[32m√ [39mnull as input is expected to give an empty string
[32m√ [39mundefined as input is expected to give an empty string
[32m√ [39mnull as noOfChars to result in 'test'
[32m√ [39mundefined as noOfChars to result in 'test'
[32m√ [39mnull as appendDots to behave as false
[32m√ [39mExpects 'test' to be truncated as 'test', when noOfChars=5, and appendDots=true
[32m√ [39mExpects 'test ' to be truncated as 'test…', when noOfChars=4, and appendDots=true
[32m√ [39mExpects 'test a long text with space' to be truncated as 'test …', when noOfChars=5, and appendDots=true
[32m√ [39mExpects 'scenarios is a long word' to be truncated as 'scena…', when noOfChars=5, and appendDots=true
[32m√ [39mExpects 'scenarios is a long word' to be truncated as 'scenarios …', when noOfChars=10, and appendDots=true
[32m√ [39mExpects 'test' to be truncated as 'test', when noOfChars=5, and appendDots=false
[32m√ [39mExpects 'test a long text with space' to be truncated as 'test ', when noOfChars=5, and appendDots=false
[32m√ [39mExpects 'scenarios is a long word' to be truncated as 'scena', when noOfChars=5, and appendDots=false
[32m√ [39mExpects 'scenarios is a long word' to be truncated as 'scenarios ', when noOfChars=10, and appendDots=false
[32m√ [39mExpects 'test' to be truncated as 'test', when wordwise=false, and max=20, and tail=...
[32m√ [39mExpects 'LoremIpsumLoremIpsumLoremIpsum' to be truncated as 'LoremIpsumLoremIpsum…', when wordwise=false, and max=20, and tail=null
umbCmsJoinArray filter
[32m√ [39mBlackbox tests with expected result='a, b, c'
[32m√ [39mBlackbox tests with expected result='a b c'
[32m√ [39mBlackbox tests with expected result='abc'
[32m√ [39mBlackbox tests with expected result=''
[32m√ [39mBlackbox tests with expected result=''
[32m√ [39mBlackbox tests with expected result=', , '
[32m√ [39mBlackbox tests with expected result='abc'
[32m√ [39mBlackbox tests with expected error. Input='test'
[32m√ [39mBlackbox tests with expected error. Input='null'
[32m√ [39mBlackbox tests with expected error. Input='undefined'
appState tests
Editor state
[32m√ [39mCan set
[32m√ [39mCan reset
[32m√ [39mThrows when setting current
Global state
[32m√ [39mCan get/set state
[32m√ [39mThrows when invalid key
Section state
[32m√ [39mCan get/set state
[32m√ [39mThrows when invalid key
Tree state
[32m√ [39mCan get/set state
[32m√ [39mThrows when invalid key
Menu state
[32m√ [39mCan get/set state
[32m√ [39mThrows when invalid key
Assets service tests
Loading js assets
[32m√ [39mLoads a javascript file
blockEditorService tests
init blockEditorModelObject
[32m√ [39mfail if no model value
[32m√ [39mreturn a object, with methods
[32m√ [39mgetBlockConfiguration provide the requested block configurtion
[32m√ [39mload provides data for itemPicker
[32m√ [39mgetLayoutEntry has values
[32m√ [39mgetBlockObject has values
[32m√ [39mgetBlockObject syncs primitive values
[32m√ [39mgetBlockObject syncs values of object
[32m√ [39mlayout is referencing layout of propertyModel
[32m√ [39mremoveDataAndDestroyModel removes data
[32m√ [39mgetBlockObject of block with settings has values
[32m√ [39mgetBlockObject of block with settings syncs primative values
[32m√ [39mgetBlockObject of block with settings syncs values of object
contentEditingHelper tests
handles http validation errors
[32m√ [39mhandles validation errors for 400 results
[32m√ [39mdoes not handle validation errors that are not 400
[32m√ [39mdoes not handle validation errors that are 400 without model state
handling validation errors
[32m√ [39madds a field level server validation error when name is invalid
[32m√ [39madds a property level server validation error when a property is invalid
[32m√ [39madds a property level server validation error with a specific field when a property is invalid
[32m√ [39madds a multiple property and field level server validation errors when they are invalid
redirecting behavior after saving content
[32m√ [39mdoes not redirect when editing existing content
[32m√ [39mdoes a redirect when creating content with a valid name
[32m√ [39mdoes not redirect when creating content with an invalid id
wires up property values after saving
[32m√ [39mdoes not update un-changed values
content factory tests
global content factory crud
[32m√ [39mshould return a content object, given an id
[32m√ [39mshould return a all children collection given an id
[32m√ [39mshould return paged children collection given an id
content type factory tests
global content type factory crud
[32m√ [39mshould return a allowed content type collection given a document id
date helper tests
converting to local moments
[32m√ [39mconverts from a positive offset
[32m√ [39mconverts from a negataive offset
converting to server strings
[32m√ [39mconverts to a positive offset
[32m√ [39mconverts from a negataive offset
angular event tests
event handling
[32m√ [39mwill handle one non async process
[32m√ [39mwill handle 2 non async process
[32m√ [39mwill handle one async process
[32m√ [39mPOC will wait to execute after all handlers
file manager tests
file management
[32m√ [39madding a file adds to the collection
[32m√ [39madding a file with the same property id replaces the existing one
[32m√ [39mclears all files
icon helper tests
converting icon formats to Belle formats
[32m√ [39mdetects a file based icon
[32m√ [39mdetects a legacy icon
[32m√ [39mconverts from legacy icon
keyboard service tests
Detecting key combinations
[32m√ [39mDetects ctrl+s
list view helper tests
getButtonPermissions
[32m√ [39mshould update the currentIdsWithPermissions dictionary
[32m√ [39mreturns button permissions
macro service tests
generates macro syntax
[32m√ [39mcan parse syntax for macros
[32m√ [39mcan parse syntax for macros with aliases containing dots
[32m√ [39mcan parse syntax for macros when macroAlias is not the first parameter
[32m√ [39mcan parse syntax for macros with aliases containing whitespace and other chars
[32m√ [39mcan parse syntax for macros with body
[32m√ [39mcan generate syntax for macros
[32m√ [39mcan generate syntax for macros with no params
[32m√ [39mcan generate syntax for MVC
[32m√ [39mcan generate syntax for MVC with no params
mediaHelper service tests
formatFileTypes
[32m√ [39mwill ignore any empty strings passed as arguments
[32m√ [39mincludes prefixed dot when formatting
navigation services tests
determine if route change causes navigation
[32m√ [39mnavigates when parameters added
[32m√ [39mnavigates when parameters removed
[32m√ [39mdoes not navigate when non routing parameters added
[32m√ [39mdoes not navigate when non routing parameters changed
[32m√ [39mdoes not navigate when non routing parameters removed
notification tests
global notifications crud
[32m√ [39mshould allow to add, get and remove notifications
serverValidationManager tests
managing field validation errors
[32m√ [39mcan add and retrieve field validation errors
[32m√ [39mwill return null for a non-existing field error
[32m√ [39mdetects if a field error exists
managing property validation errors
[32m√ [39mcan retrieve property validation errors for a sub field
[32m√ [39mcan retrieve property validation errors for a sub field for culture
[32m√ [39mcan retrieve property validation errors for a sub field for segments
[32m√ [39mcan retrieve property validation errors for a sub field for culture with segments
[32m√ [39mcan add a property errors with multiple sub fields and it the first will be retreived with only the property alias
[32m√ [39mwill return null for a non-existing property error
[32m√ [39mdetects if a property error exists
[32m√ [39mcan remove a property error with a sub field specified
[32m√ [39mcan remove a property error and all sub field errors by specifying only the property
managing culture validation errors
[32m√ [39mcan retrieve culture validation errors
managing variant validation errors
[32m√ [39mcan retrieve variant validation errors
managing complex editor validation errors
[32m√ [39mcreate dictionary of id to ModelState
[32m√ [39mcreate dictionary of id to ModelState with inherited errors
[32m√ [39madd errors for ModelState with inherited errors
validation error subscriptions
[32m√ [39mcan subscribe to a field error
[32m√ [39mcan get the field subscription callbacks
[32m√ [39mcan subscribe to a property error for both a property and its sub field
[32m√ [39mcan subscribe to a culture error for both a property and its sub field
[32m√ [39mcan subscribe to a property validation path prefix
[32m√ [39mcan subscribe to a property validation path suffix
[32m√ [39mcan subscribe to a property validation path contains
service: templateHelper
getInsertDictionarySnippet
[32m√ [39mshould return the snippet for inserting a dictionary item
getInsertPartialSnippet
[32m√ [39mshould return the snippet for inserting a partial from the root
[32m√ [39mshould return the snippet for inserting a partial from a folder
[32m√ [39mshould return the snippet for inserting a partial from a nested folder
[32m√ [39mshould return the snippet for inserting a partial from a folder with spaces in its name
getQuerySnippet
[32m√ [39mshould return the snippet for a query
getRenderBodySnippet
[32m√ [39mshould return the snippet for render body
getRenderSectionSnippet
[32m√ [39mshould return the snippet for defining a section
[32m√ [39mshould return the snippet for defining a mandatory section
getAddSectionSnippet
[32m√ [39mshould return the snippet for implementing a section
tree service tests
tree cache
[32m√ [39mdoes not cache with no args
[32m√ [39mdoes not cache with no cacheKey
[32m√ [39mcaches by section with cache key
[32m√ [39mcaches by default content section with cache key
[32m√ [39mremoves by section with cache key
[32m√ [39mremoves cache by key regardless of section
[32m√ [39mremoves all section cache regardless of key
[32m√ [39mremoves all cache
[32m√ [39mclears cache by key using a filter that returns null
[32m√ [39mremoves cache by key using a filter
[32m√ [39mremoves cache children for a parent id specified
lookup plugin based trees
[32m√ [39mcan find a plugin based tree
[32m√ [39mreturns undefined for a not found tree
Remove existing nodes
[32m√ [39mhasChildren has to be updated on parent
query existing node structure of the tree
[32m√ [39mcan get a descendant node with string id
[32m√ [39mcan get a descendant node
[32m√ [39mreturns null for a descendant node that doesnt exist
[32m√ [39mcan get a child node
[32m√ [39mreturns null for a child node that doesnt exist
[32m√ [39mreturns null for a descendant node that doesnt exist
[32m√ [39mcan get the root node from a child node
[32m√ [39mcan get the root node from the root node
udiParser tests
Parse UDI
[32m√ [39mcan parse a valid document UDI
[32m√ [39mcan parse a valid media UDI
[32m√ [39mreturns the full UDI when calling toString() on the returned value
[32m√ [39mcan parse an open UDI
[32m√ [39mreturns null if the input is invalid
umbDataFormatter service tests
formatting GET content data
[32m√ [39mwill set the same invariant property instance reference between all variants
image helper tests
basic utility methods return correct values
[32m√ [39mdetects an image based file
model mapper tests
maps basic entity
[32m√ [39mcan map content object
[32m√ [39mthrows when info is missing
[32m√ [39mcan map the minimum props
umbRequestHelper tests
formatting Urls
[32m√ [39mcan create a query string from name value pairs
[32m√ [39mcan create a url based on server vars
Virtual Paths
[32m√ [39mcan convert virtual path to absolute url
[32m√ [39mcan convert absolute path to absolute url
[32m√ [39mthrows on invalid virtual path
Utilities
fromJson
[32m√ [39mshould deserialize json as object
[32m√ [39mshould return object as object
toJson
[32m√ [39mshould delegate to JSON.stringify
[32m√ [39mshould format objects pretty
[32m√ [39mshould not serialize properties starting with $$
[32m√ [39mshould serialize properties starting with $
[32m√ [39mshould not serialize $window object
[32m√ [39mshould not serialize $document object
[32m√ [39mshould not serialize scope instances
[32m√ [39mshould serialize undefined as undefined
umbraco-test-suite: Executed 206 of 206[32m SUCCESS[39m (3.119 secs / 2.147 secs)
[32mTOTAL: 206 SUCCESS[39m
Really not sure what is going on, but if it doesn't build in Visual Studio then you might have something missing in your build tooling.
I have had to install some framework targeting packs:
In Visual Studio installer I have these selected:
Might be worth reviewing your install for these bits.
Can I ask once more: is your intention to contribute to Umbraco? Or are you trying to build Umbraco from source for some other reason?
I'm going to close this for now, since it's been a while. Hope it works now!
Hello,I have similar an error when i build from source. this is i run build.ps1 get error
RemoteException: Message:
At D:\WorkSpace\Umbraco-CMS\build\build.ps1:128:9
+ npm run build --buildversion=$this.Version.Release >> $log 2>&1
RemoteException: [20:44:22] TypeError in plugin "gulp-imagemin"
At D:\WorkSpace\Umbraco-CMS\build\build.ps1:128:9
+ npm run build --buildversion=$this.Version.Release >> $log 2>&1
RemoteException: [20:44:22] 'dependencies' errored after 9.16 s
At D:\WorkSpace\Umbraco-CMS\build\build.ps1:128:9
+ npm run build --buildversion=$this.Version.Release >> $log 2>&1
Abort
Error!
then i cd src\Umbraco.Web.UI.Client>
,then i delete node_modules ,then npm install
, and run npm run build
,npm ERR.
it is error info
PS D:\WorkSpace\Umbraco-CMS\src\Umbraco.Web.UI.Client> npm run build
> @ build D:\WorkSpace\Umbraco-CMS\src\Umbraco.Web.UI.Client
> gulp build
[21:08:35] Using gulpfile D:\WorkSpace\Umbraco-CMS\src\Umbraco.Web.UI.Client\gulpfile.js
[21:08:35] Starting 'build'...
[21:08:35] Starting 'dependencies'...
[21:08:35] Starting 'js'...
[21:08:35] Starting 'less'...
[21:08:35] Starting 'views'...
[21:08:35] gulp-imagemin: Couldn't load default plugin "gifsicle"
[21:08:35] gulp-imagemin: Couldn't load default plugin "optipng"
JS: ./src/websitepreview/**/*.js -> ../Umbraco.Web.UI/umbraco/js/umbraco.websitepreview.js
JS: ./src/websitepreview/**/*.js -> ../Umbraco.Web.UI.NetCore/wwwroot/umbraco/js/umbraco.websitepreview.js
JS: ./src/preview/**/*.js -> ../Umbraco.Web.UI/umbraco/js/umbraco.preview.js
JS: ./src/preview/**/*.js -> ../Umbraco.Web.UI.NetCore/wwwroot/umbraco/js/umbraco.preview.js
JS: ./src/installer/**/*.js -> ../Umbraco.Web.UI/umbraco/js/umbraco.installer.js
JS: ./src/installer/**/*.js -> ../Umbraco.Web.UI.NetCore/wwwroot/umbraco/js/umbraco.installer.js
JS: ./src/common/filters/**/*.js -> ../Umbraco.Web.UI/umbraco/js/umbraco.filters.js
JS: ./src/common/filters/**/*.js -> ../Umbraco.Web.UI.NetCore/wwwroot/umbraco/js/umbraco.filters.js
JS: ./src/common/resources/**/*.js -> ../Umbraco.Web.UI/umbraco/js/umbraco.resources.js
JS: ./src/common/resources/**/*.js -> ../Umbraco.Web.UI.NetCore/wwwroot/umbraco/js/umbraco.resources.js
JS: [ './src/common/services/**/*.js', './src/utilities.js' ] -> ../Umbraco.Web.UI/umbraco/js/umbraco.services.js
JS: [ './src/common/services/**/*.js', './src/utilities.js' ] -> ../Umbraco.Web.UI.NetCore/wwwroot/umbraco/js/umbraco.services.js
JS: ./src/common/interceptors/**/*.js -> ../Umbraco.Web.UI/umbraco/js/umbraco.interceptors.js
JS: ./src/common/interceptors/**/*.js -> ../Umbraco.Web.UI.NetCore/wwwroot/umbraco/js/umbraco.interceptors.js
JS: [ './src/views/**/*.controller.js', './src/*.controller.js' ] -> ../Umbraco.Web.UI/umbraco/js/umbraco.controllers.js
JS: [ './src/views/**/*.controller.js', './src/*.controller.js' ] -> ../Umbraco.Web.UI.NetCore/wwwroot/umbraco/js/umbraco.controllers.js
JS: [
'./src/common/directives/_module.js',
'./src/{common/directives,common/components}/**/*.js',
'./src/views/**/*.{directive,component}.js'
] -> ../Umbraco.Web.UI/umbraco/js/umbraco.directives.js
JS: [
'./src/common/directives/_module.js',
'./src/{common/directives,common/components}/**/*.js',
'./src/views/**/*.{directive,component}.js'
] -> ../Umbraco.Web.UI.NetCore/wwwroot/umbraco/js/umbraco.directives.js
LESS: ./src/less/installer.less -> ../Umbraco.Web.UI/umbraco/assets/css/installer.min.css
LESS: ./src/less/installer.less -> ../Umbraco.Web.UI.NetCore/wwwroot/umbraco/assets/css/installer.min.css
LESS: ./src/less/pages/nonodes.less -> ../Umbraco.Web.UI/umbraco/assets/css/nonodes.style.min.css
LESS: ./src/less/pages/nonodes.less -> ../Umbraco.Web.UI.NetCore/wwwroot/umbraco/assets/css/nonodes.style.min.css
LESS: ./src/less/canvas-designer.less -> ../Umbraco.Web.UI/umbraco/assets/css/canvasdesigner.min.css
LESS: ./src/less/canvas-designer.less -> ../Umbraco.Web.UI.NetCore/wwwroot/umbraco/assets/css/canvasdesigner.min.css
LESS: ./src/less/belle.less -> ../Umbraco.Web.UI/umbraco/assets/css/umbraco.min.css
LESS: ./src/less/belle.less -> ../Umbraco.Web.UI.NetCore/wwwroot/umbraco/assets/css/umbraco.min.css
LESS: ./src/less/rte-content.less -> ../Umbraco.Web.UI/umbraco/assets/css/rte-content.css
LESS: ./src/less/rte-content.less -> ../Umbraco.Web.UI.NetCore/wwwroot/umbraco/assets/css/rte-content.css
copying ./src/views/**/*.html to ../Umbraco.Web.UI/umbraco/views/
copying ./src/views/**/*.html to ../Umbraco.Web.UI.NetCore/wwwroot/umbraco/views/
copying ./src/common/directives/**/*.html to ../Umbraco.Web.UI/umbraco/views/
copying ./src/common/directives/**/*.html to ../Umbraco.Web.UI.NetCore/wwwroot/umbraco/views/
copying ./src/common/components/**/*.html to ../Umbraco.Web.UI/umbraco/views/
copying ./src/common/components/**/*.html to ../Umbraco.Web.UI.NetCore/wwwroot/umbraco/views/
copying ./src/installer/steps/*.html to ../Umbraco.Web.UI/umbraco/views/install/
copying ./src/installer/steps/*.html to ../Umbraco.Web.UI.NetCore/wwwroot/umbraco/views/install/
[21:08:41] 'dependencies' errored after 5.93 s
[21:08:41] TypeError in plugin "gulp-imagemin"
Message:
fn is not a function
Details:
fileName: D:\WorkSpace\Umbraco-CMS\src\Umbraco.Web.UI.Client\src\assets\img\installer.jpg
domainEmitter: [object Object]
domainThrown: false
[21:08:41] 'build' errored after 5.93 s
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @ build: `gulp build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @ build 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\zq\AppData\Roaming\npm-cache\_logs\2021-07-07T13_08_41_477Z-debug.log
what should i do?
@JohnnyZhang0628 Check your npm version and node version
@nul800sebastiaan thanks reply .it my screenshoot.
It's hard to read.. so npm 6 and node 14, that seems fine. And I'm assuming you are on the v8/contrib
branch, which is where you should start with contributions.
Apart from deleting the node_modules
folder if you have problems like this then I usually try to clear npm cache as well (so npm cache clean --force
). If that doesn't help then I'm afraid you're going to have a whole lot of googling to do for your specific error, I usually can find the issue for npm related problems only after doing a very deep google session, reading a lot of things that are misleading and finally stumbling on good clues. 🙈
@nul800sebastiaan thansk reply.My branch is v9/dev
.DotNet Core is cool.I am so happy to see the release-9.0.0-rc001
version publisned.
I have the same issue building Umbraco.Web.UI.Client in v9/dev
[16:48:40] TypeError in plugin "gulp-imagemin"
Message:
fn is not a function
$ node -v
v16.6.1
$ npm -v
7.20.5
@p-m-j If you've switched from running a v8 branch to v9 then it's probably going to cause problems. Recommend you do a fresh clone of v9 in a different directory and run npm install
and npm run build
.
I just tried with those versions and.. it 'works on my machine'™️ 😅
Doesn't seem to work with newer node for me (on debian sid), but can work around with nvm
nvm install v14 --latest-npm
nvm use v14
npm ci
npm run build
Weird! I didn't have v16 yet, so I nvm installed that one just to make sure.. but glad it works for you.. somehow! 😅
For all the cursing I do towards NuGet, it's actually pretty ok in comparison to these inconsistencies.. 🙈
I can no longer reproduce on v16 I dropped nvm out of PATH and it works fine with system install also
:man_shrugging:
I can't build Umbraco from source:
Bug summary
Steps to reproduce
By following the guide (BUILD.md):
Ends up raising the exception above.