Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot read properties of undefined (reading 'replace') #44

Open
TeoConan opened this issue Dec 12, 2023 · 0 comments
Open

Cannot read properties of undefined (reading 'replace') #44

TeoConan opened this issue Dec 12, 2023 · 0 comments

Comments

@TeoConan
Copy link

Package version

1.4.1

Node.js and npm version

v20.9.0 / v10.2.3

Sample Code (to reproduce the issue)

Hello,

I'm trying to install swagger in my project but I got stuck, I don't know if I did something wrong or there is a real problem

I did :

npm install --save adonis5-swagger
node ace invoke adonis5-swagger
node ace serve

It modified my .adonisrc.json

"commands": [
        "...",
        "adonis5-swagger/build/commands"
    ],
    "providers": [
        "...",
        "adonis5-swagger"
    ],

And then I got :

> node ace serve --watch

[ info ]  building project...
[ info ]  starting http server...

   TypeError: Cannot read properties of undefined (reading 'replace')


   ⁃ dropSlash
     /Users/teo/dev/troubadour/api-troubadour/node_modules/@adonisjs/http-server/build/src/helpers.js:31
   ⁃ Route.computePattern
     /Users/teo/dev/troubadour/api-troubadour/node_modules/@adonisjs/http-server/build/src/Router/Route.js:79
   ⁃ Route.toJSON
     /Users/teo/dev/troubadour/api-troubadour/node_modules/@adonisjs/http-server/build/src/Router/Route.js:190

If anyone got an idea about why this happen
Thanks in advance !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant