Comments (5)
there is bug in XpFsStorageService use if (!stat.isDirectory()) {
not
if (!stat.hasOwnProperty('isDirectory')) {
workaround can by done by own implementation of storageService
https://gist.github.com/meatfly/baff02d8004802a870b77171f0b3f6e0
and than use in app.server.module.ts
ServerCacheModule.forRoot([
{
provide: CACHE,
useClass: FsCacheService
},
{
provide: STORAGE,
useClass: XpFsStorageService
from universal.
has anybody figured out how to fix/workaround this?
from universal.
I am facing the same issue, any ideas what is happening?
ERROR { Error: EEXIST: file already exists, mkdir '/Users/myself/projects/tools/universal/.cache'
at Object.mkdirSync (fs.js:774:3)
at new FsStorageService (/Users/myself/projects/tools/universal/node_modules/@ngx-cache/fs-storage/bundles/ngx-cache-fs-storage.umd.js:131:20)
at _createClass (/Users/myself/projects/tools/universal/node_modules/@angular/core/bundles/core.umd.js:21185:24)
at _createProviderInstance (/Users/myself/projects/tools/universal/node_modules/@angular/core/bundles/core.umd.js:21157:30)
at resolveNgModuleDep (/Users/myself/projects/tools/universal/node_modules/@angular/core/bundles/core.umd.js:21121:25)
at NgModuleRef_.get (/Users/myself/projects/tools/universal/node_modules/@angular/core/bundles/core.umd.js:21829:20)
at new FsCacheService (/Users/myself/projects/tools/universal/node_modules/@ngx-cache/platform-server/bundles/ngx-cache-platform-server.umd.js:41:39)
at _createClass (/Users/myself/projects/tools/universal/node_modules/@angular/core/bundles/core.umd.js:21187:24)
at _createProviderInstance (/Users/myself/projects/tools/universal/node_modules/@angular/core/bundles/core.umd.js:21157:30)
at resolveNgModuleDep (/Users/myself/projects/tools/universal/node_modules/@angular/core/bundles/core.umd.js:21121:25)
errno: -17,
syscall: 'mkdir',
code: 'EEXIST',
path: '/Users/myself/projects/tools/universal/.cache' }
from universal.
Hi, same problem here, some hint to resolve ?
EEXIST: file already exists, mkdir '/Users/user/work/data-admin-gui/.cache'
at mkdirSync (fs.js:775:3)
at new FsStorageService (/Users/user/work/data-admin-gui/dist/server.js:239910:65)
at _createClass (/Users/user/work/data-admin-gui/dist/server.js:24689:20)
at _createProviderInstance (/Users/user/work/data-admin-gui/dist/server.js:24661:26)
at resolveNgModuleDep (/Users/user/work/data-admin-gui/dist/server.js:24625:21)
at NgModuleRef_.get (/Users/user/work/data-admin-gui/dist/server.js:25333:16)
at new FsCacheService (/Users/user/work/data-admin-gui/dist/server.js:240075:35)
at _createClass (/Users/user/work/data-admin-gui/dist/server.js:24691:20)
at _createProviderInstance (/Users/user/work/data-admin-gui/dist/server.js:24661:26)
at resolveNgModuleDep (/Users/user/work/data-admin-gui/dist/server.js:24625:21)
from universal.
I still have this error
Error: EEXIST: file already exists, mkdir '/usr/src/app/.cache'
at Object.mkdirSync (fs.js:752:3)
at new XpFsStorageService (/usr/src/app/dist/server.js:4438:18)
at _createClass (/usr/src/app/dist/server.js:90200:20)
at _createProviderInstance (/usr/src/app/dist/server.js:90172:26)
at resolveNgModuleDep (/usr/src/app/dist/server.js:90136:21)
at NgModuleRef_../node_modules/@angular/core/fesm5/core.js.NgModuleRef_.get (/usr/src/app/dist/server.js:90844:16)
at new FsCacheService (/usr/src/app/dist/server.js:123492:35)
at _createClass (/usr/src/app/dist/server.js:90202:20)
at _createProviderInstance (/usr/src/app/dist/server.js:90172:26)
at resolveNgModuleDep (/usr/src/app/dist/server.js:90136:21)
Event with your XpFsStorageService
😕
from universal.
Related Issues (20)
- way to access the meta title HOT 1
- unreachable endpoint HOT 3
- why should we need `electron` in this project HOT 1
- html tags including webpack javascript syntax
- How to disable all the Junits.?
- func expressions not supported in decorators in reducers in aot HOT 1
- no setting found with the specified key HOT 3
- assets path HOT 1
- how to set facebook og tags HOT 1
- Show html css in between route-app tag HOT 1
- Any ideas to integrate socket.io?
- Migrate LGTM.com installation from OAuth to GitHub App
- Build command project name typo HOT 1
- use sitemap-generator for SSR
- Angular 4 universal ReferenceError: document is not defined HOT 1
- getting issue on yarn start:ssr HOT 2
- Error: You must pass in a NgModule or NgModuleFactory to be bootstrapped
- error Type 'Request' is not generic
- Why do I see network requests at in Chrome broswer?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from universal.