Giter VIP home page Giter VIP logo

Comments (5)

meatfly avatar meatfly commented on May 25, 2024 4

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.

shayangz avatar shayangz commented on May 25, 2024

has anybody figured out how to fix/workaround this?

from universal.

raviada avatar raviada commented on May 25, 2024

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.

meatfly avatar meatfly commented on May 25, 2024

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.

squelix avatar squelix commented on May 25, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.