I am developing a small project using webpack, React.js with Visual Studio. After renaming, deleting and creating a certain file with the name xxx.js I have got an error:
ERROR in No files matching 'C:\MyPath\src\ViewLayer\xxx.js' were found.
Failed to compile.
No issues found.
What could be an issue?
In my case I discovered that the entry C:\MyPath\src\ViewLayer\xxx.js exists in C:\MyPath\public\stats.json. I removed this file and restarted the project with regular:
npm start
It has worked. The error disappeared. Now I have:
Compiled successfully.
No issues found.
It is a vierd world :-)
Related
I am trying to connect my react native android app to an existing SQL Server. But the problem is, I keep getting an error that says "stream could not be found within the project or in these directories: node_modules". And if I try installing the module, another error occurs regarding util could not be found. Up until I've installed crypto, the error changes. It would say something about
error: Error: While trying to resolve module crypto from file
C:\react\connectDatabase\node_modules\tedious\lib\connection.js, the
package C:\react\connectDatabase\node_modules\crypto\package.json
was successfully found. However, this package itself specifies a
main module field that could not be resolved
(C:\react\connectDatabase\node_modules\crypto\index.js. Indeed, none
of these files exist:
*C:\react\connectDatabase\node_modules\crypto\index.js(.native|.android.js|.native.js|.js|.android.json|.native.json|.json|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx)
*C:\react\connectDatabase\node_modules\crypto\index.js\index(.native|.android.js|.native.js|.js|.android.json|.native.json|.json|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx)
at DependencyGraph.resolveDependency (C:\react\connectDatabase\node_modules\metro\src\node-haste\DependencyGraph.js:311:17)
I downloaded a project by a book writer from internet. If I copied the resource code into my project created by default redux framework “create-react-app”, it works.
But when I changed the default directory of node.js to the demo directory , it threw an error as ”Cannot find module ‘we pack ’”, no matter I installed webpack using “npm install —global webpack” or “npm install webpack”, it still threw the same error when I start the demo.
What’s wrong with my development environment, Please tell me what happened?
I'm trying to debug a really bizarre issue. As part of the build process on a project I'm working on, a bower_components folder is created with all the packages listed in the bower.json file. This process seems to complete successfully. However, when I refresh the project and view it in the browser, there is a single missing package (in this specific case it is angular-ui-sortable). The package is present in bower_components directory on the server, but absent when viewing that same directory in Chrome devtools. The missing package is breaking the UI since Angular throws an "$injector error" because it is unable to find the missing package. The question I have is, how do i even begin to debug this issue. I've confirmed that I'm looking at the correct folder as well as checked the missing package's permissions. I've also confirmed that the package is correctly included in the project's index.html file.
Any advice is greatly appreciated.
Thank you.
I have a Silverlight application that I have been trying to deploy to a specific folder locally, but I keep getting an error when trying to copy over the System.Windows.Interactivity.zip. The exact error message is:
Error 2 Copying file ClientBin\System.Windows.Interactivity.zip to
obj\Debug\Package\PackageTmp\ClientBin\System.Windows.Interactivity.zip
failed. Could not find file
'ClientBin\System.Windows.Interactivity.zip'.
I do have a project that has a reference to this dll, but the project compiles just fine. Any ideas why I'm getting this error message?
I found an old zip file and added to the destination folder. Couldn't figure it out but it works this way
Im trying to merge 2 projects in visual studio and getting a LNK1181 error. I have searched on google and tried everything i came across but i simple cant solve the problem.
I am getting the following results:
Performing a build this succeeds.
Performing a Rebuild it fails with error LNK1181: cannot open input file 'a.dll'
Doing a build the output screen shows the dll is created and it is there in the folder.
Doing a rebuild the output screen shows the dll is created but then it is not in the folder. And then the rebuild results in the fail + the error LNK1181.
So what is wrong? What is different on a rebuild?
I can even see in the folder that the dll is beiing created and then removed again..
*I have 1 project that is the main project and creates the .exe, and it relies on a other project to run.
Solution:
I found the problem and is has nothing to do with the LNK error message i am getting.
Apparently a clean -> build is very different from doing just a rebuild. Mainly because i have multiple projects. When doing a clean -> build is first cleans all the files and then builds all the projects.
But doing a rebuild project A is beiing cleaned and build, then project B is beiing cleaned and build etc..
This way the lib generated bij A is beiing deleted. The solution for this is or just do a clean -> build. Or perform my own clean by deleting the files myself and then do a rebuild.
Also i dont feel like spending to much time on this issue when it is just a MSbuild "problem/bug" and doing a clean build is good enough.
linker error is maybe due to some lib is missing.
firstly check whether you have the lib for a.dll,
then add correct path for the lib in Visual Studio.