Fullcalendar not working because of missing files - vue.js

I'm trying to put a calendar in my project but I'm getting errors and I dont' know why.
The library that im trying to use is fullCalendar for vue. When I'm trying to download it for vue 3 it refuses to download properly
Compiled with problems:
ERROR in
./node_modules/#fullcalendar/common/node_modules/tslib/tslib.es6.js
Module build failed: Error: ENOENT: no such file or directory, open
'C:\Users\Valentijn\Documents\GitHub\flo-4\node_modules#fullcalendar\common\node_modules\tslib\tslib.es6.js'
ERROR in
./node_modules/#fullcalendar/core/node_modules/tslib/tslib.es6.js
Module build failed: Error: ENOENT: no such file or directory, open
'C:\Users\Valentijn\Documents\GitHub\flo-4\node_modules#fullcalendar\core\node_modules\tslib\tslib.es6.js'
ERROR in
./node_modules/#fullcalendar/vue/node_modules/tslib/tslib.es6.js
Module build failed: Error: ENOENT: no such file or directory, open
'C:\Users\Valentijn\Documents\GitHub\flo-4\node_modules#fullcalendar\vue\node_modules\tslib\tslib.es6.js'

Related

I get "This Serverless Function has crashed." When I deploy my NUXT js app to Vercel

I built my app on NUXT JS and deployed it on Vercel, but I get the error as shown below.
When I opened the function log, here is what it showed me.
Here is a full description of the error code I get in the functions Log.
[GET] /
03:25:28:10
WARN /var/task/content does not exist
ℹ Parsed 0 files in 203.10 seconds
FATAL ENOENT: no such file or directory, mkdir '/var/task/.nuxt/dist/client'
2022-06-18T02:25:28.277Z d7a5445e-ee11-4de0-b976-042d56036dc7 ERROR Unhandled Promise Rejection {"errorType":"Runtime.UnhandledPromiseRejection","errorMessage":"Error: ENOENT: no such file or directory, open '/var/task/static/sw.js'","reason":{"errorType":"Error","errorMessage":"ENOENT: no such file or directory, open '/var/task/static/sw.js'","code":"ENOENT","errno":-2,"syscall":"open","path":"/var/task/static/sw.js","stack":["Error: ENOENT: no such file or directory, open '/var/task/static/sw.js'"]},"promise":{},"stack":["Runtime.UnhandledPromiseRejection: Error: ENOENT: no such file or directory, open '/var/task/static/sw.js'"," at process.<anonymous> (/var/runtime/index.js:35:15)"," at process.emit (events.js:412:35)"," at processEmit [as emit] (/var/task/node_modules/signal-exit/index.js:199:34)"," at processPromiseRejections (internal/process/promises.js:245:33)"," at processTicksAndRejections (internal/process/task_queues.js:96:32)"]}
Unknown application error occurred
[GET] /
03:25:28:00
WARN /var/task/content does not exist
ℹ Parsed 0 files in 0.0 seconds
FATAL ENOENT: no such file or directory, mkdir '/var/task/.nuxt/dist/client'
2022-06-18T02:25:29.079Z f196113c-cf3a-4725-85fa-75f87fa94c50 ERROR Unhandled Promise Rejection {"errorType":"Runtime.UnhandledPromiseRejection","errorMessage":"Error: ENOENT: no such file or directory, open '/var/task/static/sw.js'","reason":{"errorType":"Error","errorMessage":"ENOENT: no such file or directory, open '/var/task/static/sw.js'","code":"ENOENT","errno":-2,"syscall":"open","path":"/var/task/static/sw.js","stack":["Error: ENOENT: no such file or directory, open '/var/task/static/sw.js'"]},"promise":{},"stack":["Runtime.UnhandledPromiseRejection: Error: ENOENT: no such file or directory, open '/var/task/static/sw.js'"," at process.<anonymous> (/var/runtime/index.js:35:15)"," at process.emit (events.js:412:35)"," at processEmit [as emit] (/var/task/node_modules/signal-exit/index.js:199:34)"," at processPromiseRejections (internal/process/promises.js:245:33)"," at processTicksAndRejections (internal/process/task_queues.js:96:32)"]}
Unknown application error occurred
[GET] /
03:25:27:61
WARN /var/task/content does not exist
ℹ Parsed 0 files in 144.5 seconds
FATAL ENOENT: no such file or directory, mkdir '/var/task/.nuxt/dist/client'
2022-06-18T02:25:27.798Z 39e75c36-f6b6-4654-89ba-b0d9c90ae9ad ERROR Unhandled Promise Rejection {"errorType":"Runtime.UnhandledPromiseRejection","errorMessage":"Error: ENOENT: no such file or directory, open '/var/task/static/sw.js'","reason":{"errorType":"Error","errorMessage":"ENOENT: no such file or directory, open '/var/task/static/sw.js'","code":"ENOENT","errno":-2,"syscall":"open","path":"/var/task/static/sw.js","stack":["Error: ENOENT: no such file or directory, open '/var/task/static/sw.js'"]},"promise":{},"stack":["Runtime.UnhandledPromiseRejection: Error: ENOENT: no such file or directory, open '/var/task/static/sw.js'"," at process.<anonymous> (/var/runtime/index.js:35:15)"," at process.emit (events.js:412:35)"," at processEmit [as emit] (/var/task/node_modules/signal-exit/index.js:199:34)"," at processPromiseRejections (internal/process/promises.js:245:33)"," at processTicksAndRejections (internal/process/task_queues.js:96:32)"]}
Unknown application error occurred
Any help debugging this would be appreciated and I use Nuxt 2
This error comes after deployment of your web app. This is an error by checkly. Checkly checks that is every page is loading fine or not. If any of the page will break it will throw the error.
So in local you are checking your web app in one point of solution. if your all pages are handle accroding to every prospective(api fulfillment or error). Then your issue will be solved.

Local npm module cannot be found

In a React Boilerplate project, I am trying to use a local module, but getting:
ERROR in ./node_modules/react-sortable-tree-theme-file-explorer/dist/main.js
Module build failed: Error: ENOENT: no such file or directory, open '/Users/username/Documents/project/node_modules/react-sortable-tree-theme-file-explorer/dist/main.js'
Both paths do exist:
$ ls node_modules/react-sortable-tree-theme-file-explorer/dist/main.js
node_modules/react-sortable-tree-theme-file-explorer/dist/main.js
and
$ ls /Users/username/Documents/project/node_modules/react-sortable-tree-theme-file-explorer/dist/main.js
/Users/username/Documents/project/node_modules/react-sortable-tree-theme-file-explorer/dist/main.js
...so I can't figure out what the complaint is. The paths and files DO EXIST. I used npm link initially, but that never worked, and so I also tried npm install ../react-sortable-tree-theme-file-explorer but it gives the exact same results.
I am importing the package as in:
import FileExplorerThemeBase from "react-sortable-tree-theme-file-explorer";

Error: ENOENT: no such file or directory react-native-camera

Does anyone has faced this problem with react-native-camera when taking a picture
Error: ENOENT: no such file or directory, open
'assets-library://asset/asset.JPG?id=B52996FD-EBCD-4B8D-A289-81063B8F09E9&ext=JPG'
?(edited)
Make sure you are in the correct directory when running the command.

Vue-router. Error in the browser console after using "npm update" command. Error: Module build failed: Error: ENOENT: no such file or directory

Before updating project was working.
After updating with "npm update" command, browser console shows:
Error: Module build failed: Error: ENOENT: no such file or directory,
open
'C:\xampp\htdocs\beauty\node_modules\vue-router\dist\vue-router.esm.js'
In my bootstap file I add Vue-router like thiss
import VueRouter from 'vue-router';
window.Vue.use(VueRouter);
I don't understand where is problem and what should i do?
In my case, I had to restart the dev server since I've switched to a branch that had TypeScript introduced while started dev server on another (feature branch) that added vue-router but didn't have TS. I've merged and was puzzled why I got this error until I've realised that dev server probably doesn't recognize TS at all (depending on switching main.js to .ts and back I had the same or different error).

AURELIA-CLI : how to use node module 'crypto' with aurelia-cli loader

I have an AURELIA application that uses the node module 'crypto'.
It works fine with GULP/JSPM (after 'npm install crypto' and 'jspm install crypto').
Now I want to use aurelia-cli instead of JSPM.
But I didn't succeed to load 'crypto' with the Aurelia-cli.
When building the app with 'au build' I got the error:
Error: ENOENT: no such file or directory, open '......\src\crypto.js'
I certainly need to reference 'crypto' in aurelia.json file but I don't find what to insert in this file.
Thanks if somebody could provide aurelia.json content for using crypto.