Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • 06:54
    ziofat commented #749
  • 06:52
    Romakita labeled #749
  • 06:52
    Romakita commented #749
  • Jan 27 19:36
    Romakita commented #750
  • Jan 27 18:15
    silveoj assigned #750
  • Jan 27 18:15
    silveoj labeled #750
  • Jan 27 18:15
    silveoj opened #750
  • Jan 27 14:22
    ziofat edited #749
  • Jan 27 14:22
    ziofat labeled #749
  • Jan 27 14:22
    ziofat assigned #749
  • Jan 27 14:22
    ziofat opened #749
  • Jan 27 12:22
    PAStheLoD commented #747
  • Jan 27 09:20
    Romakita commented #748
  • Jan 27 08:21
    Romakita labeled #748
  • Jan 27 08:21
    Romakita commented #748
  • Jan 27 07:52
    Romakita commented #748
  • Jan 27 07:50
    Romakita closed #748
  • Jan 27 07:39
    laolarou726 commented #748
  • Jan 27 07:35
    Romakita commented #748
  • Jan 27 07:25
    laolarou726 labeled #748
Romain Lenzotti
@Romakita
Ok let try something
Romain Lenzotti
@Romakita
ok can you checkout fix-issue branch pls and test it :)
kingdevnl
@kingdevnl
Lets try sec
USE {"pagesPath":"C:/Users/jaspe/direct-on/src/views"}
Starting Webpack Compilation
--------
Error Precacheing C:\Users\jaspe\direct-on\src\views\main.vue

 TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined
[2020-01-26T11:00:15.425] [ERROR] [TSED] - TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined
    at validateString (internal/validators.js:118:11)
    at Object.parse (path.js:818:5)
    at Renderer.getBundleFilePath (C:\Users\jaspe\direct-on\node_modules\vue-pronto\lib\renderer\renderer-webpack.js:223:33)
    at Renderer._buildConfig (C:\Users\jaspe\direct-on\node_modules\vue-pronto\lib\renderer\renderer-webpack.js:253:33)
    at Renderer.Build (C:\Users\jaspe\direct-on\node_modules\vue-pronto\lib\renderer\renderer-webpack.js:178:46)
    at Renderer.Bootstrap (C:\Users\jaspe\direct-on\node_modules\vue-pronto\lib\renderer\renderer-webpack.js:155:32)
    at Object.use (C:\Users\jaspe\direct-on\node_modules\express-vue\lib\index.js:154:5) {
  code: 'ERR_INVALID_ARG_TYPE'
the f
If i had the knowhege i would of made myself a Vue renderer Hahahaha
Romain Lenzotti
@Romakita
I think vue-pronto isn’t compatible with Windows
path.parse(filePath.split(this.pagesPath)[1])
kingdevnl
@kingdevnl
I can't seem to find any issues
Romain Lenzotti
@Romakita
Maybe you are the first :)
hum maybe normalize-path isn’t the right fix
yes is that. Normalizee replace \ by /
that explain why the express-vue doesn’t works
Ok I changed the mapper by that
import {normalize} from "path"

function mapOptions({pagesPath = `${process.cwd()}/src/views`, ...props}: any = {}) {
  return {
    ...props,
    pagesPath: normalize(pagesPath)
  };
}
kingdevnl
@kingdevnl
In what file do i have to change that?
Romain Lenzotti
@Romakita
In ExpressVueModule.ts
It would be cool if this all works to make it a offical TSed module :)
Romain Lenzotti
@Romakita
Yes, is a good candidate to provide an official module :)
As I see you have to restart the server after modification on a vue file
To see changes
kingdevnl
@kingdevnl
that sucks tho
Romain Lenzotti
@Romakita
ok normalize from path doesn’t works. It remove slashes T.T
Ok I have to go. I’ll start my PC (on windows) and checkout the project
I’ll come back to you when is done ;)
the problem is on pagesPath format
If you find a solution tell me :)
kingdevnl
@kingdevnl
So indeed it works on linux
Romain Lenzotti
@Romakita
We can’t fix that on our side. The problem is related to vue-pronto and webpack. On windows the path to compile the main.vue are resolved incorrectly
You have to open a github issue on express-vue and explain your problem
I created a repository based on the original express-vue example
The bug is the same. You can fork it and open issue on express-vue :)
Pablo Culebras
@pculebras
@Romakita I created a separate NPM package with my @Module in it, how can I make sure that it is loaded when the server is starting?
Romain Lenzotti
@Romakita
You module is loaded when you importing it. But in your npm package.json (Module) you have to move the @tsed/* to devDependencies field
You have a link to you repository module ?
Pablo Culebras
@pculebras
I tried to use the source code of @tsed/passport as a reference
kingdevnl
@kingdevnl
@pculebras How could i disable request logs?
kingdevnl
@kingdevnl
O and somehow TSED isn't getting my form data
Its not even in the request object
Pablo Culebras
@pculebras
@kingdevnl I guess by adding a config line for the logger in the server settings: https://tsed.io/configuration.html#default-logger
kingdevnl
@kingdevnl
Hey is it possible to get the TypeORM db connection in the $beforeRoutesInit
for this