Year: 2022
-
Post Views: 16 1. Execute: Vagrant up error: The name of your virtual machine could beT Be Set Because VirtualBox is reporting another VM with that name already exists. as shown in Figure 1 2. After deleting Vagrant, open the VirtualBox GUI to confirm whether it exists, and then manually delete the virtual machine. as shown in Figure 2 3.…
-
Post Views: 19 1. Execute the Composer Update in Homestead and report an error: Your requirements could not be resolved to an installable set of packages. The reason is that the PHP version is 8.0 , and the version of the package depends on 7. as shown in Figure 1 2. Reference:https://learnku.com/docs/laravel/5.8/homestead/3882#multiple-php-versions. Homestead 6 introduced support for multiple PHP versions…
-
Post Views: 15 1. Log in to the Homestead virtual machine with the command vagrant ssh to ssh, and the login fails and does not respond. as shown in Figure 1 2. Use folders to indicate the folder that the machine is mapped to on the Homestead virtual machine. The reason is that the native folder e:/wwwroot specified by map…
-
Post Views: 20 1. Lerna err! Yarn run prod exited 1 in@theme/objectError command failed with exit code 1. as shown in Figure 1 2. Decide to delete the directory: node_modules, and execute the yarn and yarn prod commands again.
-
Post Views: 18 1. Execute the generated sql, which can be found in the local Windows 10. In the liunx container, no records are found. Print records under Windows 10. as shown in Figure 1 2. Print the record under the liunx container. The result is null. as shown in Figure 2 3. Decide to print the generated sql, you…
-
Post Views: 21 1. GraphQL architecture is defined as follows 2. Print the output 1 in the method __invoke in the class TemplateDetailsResolver, not output. as shown in Figure 1 3. The GraphQL schema definition is restored as follows, then the corresponding class method __invoke can be executed. as shown in Figure 2 4. Decide to split the GraphQL schema…
-
Post Views: 17 1. Argument 1 passed to nuwave\\lighthouse\schema\\typeregistry::get() must be of the type string, array given, Called in E:\\WWWRoot\\Object\Object\Vendor\\Nuwave\LightHouse\src\Schema\\Typeregistry.php on line 553. as shown in Figure 1 2. Edit the code and add __typename to the return parameter
-
Post Views: 21 1. Report an error in Lighthouse: Failed to load type: themesettingrange. Make sure the type is present in your schema definition. There is an error message when viewing the request in the GraphQL client. as shown in Figure 1 2. Print the data to be responded to and find[__typename]=> ThemeSettingRange. as shown in Figure 2 3. Adjust…
-
Post Views: 18 1. When starting Vagrant, an error is reported: D:/Program files/hashicorp/vagrant/embedded/mingw64/lib/ruby/2.7.0/psych.rb:456:in `parse: (): found a tab character that violates indentation while scanning a plain scalar at line 10 Column 7 (psych::SyntaxError). as shown in Figure 1 2. View the file ~/homestead/homestead.yaml in phpstorm, and find a red wavy line prompt. The reason may be that it has been…
-
Post Views: 13 1. Error in PHP 7.4: Illegal offset type in issue or empty. as shown in Figure 1 2. The code is as follows: 3. Print $setting, its value is the object. as shown in Figure 2 4. will $setting[‘settingId’]Convert to string. 5. The value of the printed and converted string is as follows 6. No more errors.