Category Archives: Error

[Solved] Vite2 Error: Unknown variable dynamic import

When the project is packaged and deployed with vite, it is found that some page resources cannot be obtained after deployment. The error is as follows:

Solution:

Replace

function getViews(path) {
  return () => import('../' + path + '.vue')
}

with

function getViews(path) {
  // First get all the addresses of the components you need to route dynamically
  let modules = import.meta.glob('. /*/*.vue')
  // Then fetch them like this when dynamically routing
  return modules['../' + path + '.vue']
}

The reason for the error is that there is an error in dynamic route acquisition.

Failure to find … was cached in the local repository, resolution will not be reattempted until the update interval of public has elapsed or updates are forced

When I packaged the project, I reported an error:

 

 

Failure to find com.st:oscarJDBC16:pom:1.0.0 in http://maven.aliyun.com/nexus/content/groups/public/ was cached in the local repository, resolution will not be reattempted until the update interval of public has elapsed or updates are forced

 

In order to solve this problem, a lot of information was consulted as follows:

1,

Go to your own .m2 folder and delete all the xxx.lastUpdated files, run maven again, ok!

Or add the -U parameter when using maven, you can ignore xxx.lastUpdated..

Here, a simple investigation is not caused by this reason

2,

Change the version, or change the source to try

I’ve changed it several times, but it still gives an error

3,

Added updatePolicy property to release or snapshots version of repository, where updatePolicy can be set to “always”, “daily” (default), “interval:XXX” (minutes) or “never”

<repositories>
    <repository>
      <id>io.spring.repo.maven.release</id>
      <url>http://repo.spring.io/release/</url>
      <releases>
        <enabled>true</enabled>
        <updatePolicy>always</updatePolicy>
      </releases>
      <snapshots><enabled>false</enabled></snapshots>
    </repository>
  </repositories>

still error

 

final solution

previous pom configuration

 

 

Modified to direct reading jar package

problem solved!!!

How to Solve KTAG Red PCB “Program already running” Issue

Problem: One customer is asking why he cannot open Auto ECU Programmer V2.25 KTAG red PCB software on CD. And it gives a warning “Program already running”. What the reason, any suggestions?

solution ktag red pcb program already running issue – Solution: KTAG Red PCB “Program already running” Issue – KTAG Red PCB Program already running

Solution

1. Please DO NOT open K-TAG ECU Programmer on CD directly. Users should copy it to desktop firstly, then can be running.
2. The reason why this message coming is because user has already opened KTAG software. Please DO NOT open it repeatedly. Or users may try to shut down task firstly, then restart it again.

[Solved] IDEA Unboxing of ‘stringRedisTemplate.hasKey(xx)’ may produce ‘NullPointerException’

Question details

Yellow warning when using stringRedisTemplate.hasKey(**)

Warning message: IDEA Unboxing of ‘stringRedisTemplate.hasKey(xx)’ may produce ‘NullPointerException’ warning

Possible null pointer exception when unboxing

Look through the hasKey source code

Looking at the hasKey source code, the hasKey method returns an object wrapper, but using it inside the if condition implicitly unboxes it (ie, converts the result of the call to the original value). If for some reason the hasKey method might return null, an error will occur. For security, you can check if the key exists by following the steps below

solution:

if ( Boolean.TRUE.equals ( redisTemplate.hasKey ( XXXX)) { }

The same is true for other return wrapper types Boolean

[Solved] TS2307: Cannot find module ‘./style.module.scss’ or its corresponding type declarations.

react write ts script import module error:

import style from './style.module.scss' reports an 
error: TS2307: Cannot find module './style.module.scss' or its corresponding type declarations. 

It is because there is no relevant declaration in react-app-env.d.ts added in
declare module '*.module.scss' { 
    const classes: { readonly [key: string]: string } 
    export default classes 
} 

Saving can solve the problem

ROS Error: IOError: [Errno 13] Permission denied: ‘/home/zn/.ros/log/robotiq2FGripper.log’

Run Robotiq to control the driver node and report an error

rosrun robotiq_2f_gripper_control Robotiq2FGripperRtuNode.py /dev/ttyUSB0
IOError: [Errno 13 ] Permission denied: ' /home/zn/.ros/log/robotiq2FGripper.log '

Solution:

This problem is caused by the permissions of the ros file in this path.

Enter the following command to modify permissions:

sudo chmod 777 -R ~/.ros/

After the modification is completed, enter roscore again and it will be ok

/home/zn/robotiq_ws/src/robotiq/robotiq_2f_gripper_control/nodes/Robotiq2FGripperRtuNode.py: 65 : SyntaxWarning: The publisher should be created with an explicit keyword argument ' queue_size ' . Please see http: // wiki.ros.org/rospy /Overview/Publishers%20and%20Subscribers for more information.pub 
  = rospy.Publisher( ' Robotiq2FGripperRobotInput ' , inputMsg.Robotiq2FGripper_robot_input)

Hadoop Error: rsync error: remote command not found (code 127) at io.c(226) [sender=3.1.2]

Problem Description

rsync: command not found
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: remote command not found (code 127) at io.c(226) [sender=3.1.2]

Cause
of the problem This problem occurs because not only does the synchronizing machine need to have rsync installed, but it also needs to be installed on the machine being synchronized.

Solution
Install it in both the synchronizing machine and the synchronizing machinersync

yum -y install rsync

Springboot Import Error: Cannot resolve org.springframework.boot:spring-boot-autoconfigure:2.6.2

maven import error

Cannot resolve org.springframework.boot:spring-boot-autoconfigure:2.6.2

 

Solution 1:

Delete the package corresponding to the local maven and download it again

 

Solution 2:

It may be a springboot version problem, lower the version (2.6.2 can’t be used before. Just change to 2.5.7)

<parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version> 2.5.7 </version>
        <relativePath/> <!-- lookup parent from repository -->
    </parent>

Unity5.4.x Update to Unity2019 Error: -System.MissingMethodException

Error Messages:

System.Reflection.BindingFlags
ReadSelectedTable Error = System.MissingMethodException: TABLE.xxx.rows Due to: Attempted to access a missing member.
at System.RuntimeType.InvokeMember (System.String name, System.Reflection.BindingFlags bindingFlags, System.Reflection.Binder binder, System.Object target, System.Object[] providedArgs, System.Reflection.ParameterModifier[] modifiers, System.Globalization.CultureInfo culture, System.String[] namedParams) [0x0070c] in <567df3e0919241ba98db88bec4c6696f>:0
at System.Type.InvokeMember (System.String name, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object target, System.Object[] args) [0x00000] in <567df3e0919241ba98db88bec4c6696f>:0

 

Solution:

Unity2019

var rowsData = arrayType.InvokeMember(“rows”, BindingFlags.Public | BindingFlags.GetProperty | BindingFlags.Instance, null, arrayData, null);
tableRows = (rowsData as ICollection).GetEnumerator();