os-js / osjs-server

OS.js Server Module
https://manual.os-js.org
Other
19 stars 21 forks source link

Core's settings provider does not provide an FS adapter (anymore) #14

Closed IngwiePhoenix closed 5 years ago

IngwiePhoenix commented 5 years ago

After doing these changes:

// Server (src/server/index.js)
osjs.register(SettingsServiceProvider, {
  args: {
    adapter: 'fs'
  }
});

// Client (src/client/index.js)
osjs.register(SettingsServiceProvider, {
  args: {
    adapter: 'server'
  }
});

I get this error:

TypeError: Cannot read property 'toLowerCase' of undefined
    at Promise (/home/osjs/OS.js/node_modules/@osjs/server/src/utils/vfs.js:165:49)
    at new Promise (<anonymous>)
    at module.exports.parseFields (/home/osjs/OS.js/node_modules/@osjs/server/src/utils/vfs.js:159:60)
    at /home/osjs/OS.js/node_modules/@osjs/server/src/filesystem.js:106:41
    at Object.request (/home/osjs/OS.js/node_modules/@osjs/server/src/providers/vfs.js:114:55)
    at request (/home/osjs/OS.js/node_modules/@osjs/server/src/settings.js:48:23)
    at read (/home/osjs/OS.js/node_modules/@osjs/server/src/settings.js:79:7)
    at mkdir.then (/home/osjs/OS.js/node_modules/@osjs/server/src/settings.js:95:17)
andersevenrud commented 5 years ago

Publishing new @osjs/server now :)