ehhh
ehhh
TTCTheo's Typesafe Cult
Created by ehhh on 4/28/2023 in #questions
Issues importing a class in the provider folder of AdonisJS while creating TypeScript definitions.
Hey, umm, I fixed it. I searched through the issues in the Adonis/core repo on GitHub, and it seems that there are some issues when using PNPM (which is what I've been using the whole time), so I switched to Yarn, and it's now working fine! Thank youuu.
15 replies
TTCTheo's Typesafe Cult
Created by ehhh on 4/28/2023 in #questions
Issues importing a class in the provider folder of AdonisJS while creating TypeScript definitions.
yup, still the same
15 replies
TTCTheo's Typesafe Cult
Created by ehhh on 4/28/2023 in #questions
Issues importing a class in the provider folder of AdonisJS while creating TypeScript definitions.
15 replies
TTCTheo's Typesafe Cult
Created by ehhh on 4/28/2023 in #questions
Issues importing a class in the provider folder of AdonisJS while creating TypeScript definitions.
yup, this is my .adonisrc.json file
{
"typescript": true,
"commands": [
"./commands",
"@adonisjs/core/build/commands/index.js",
"@adonisjs/repl/build/commands"
],
"exceptionHandlerNamespace": "App/Exceptions/Handler",
"aliases": {
"App": "app",
"Config": "config",
"Database": "database",
"Contracts": "contracts"
},
"preloads": [
"./start/routes",
"./start/kernel"
],
"providers": [
"./providers/AppProvider",
"@adonisjs/core",
"./providers/DatabaseProvider"
],
"aceProviders": [
"@adonisjs/repl"
],
"tests": {
"suites": [
{
"name": "functional",
"files": [
"tests/functional/**/*.spec(.ts|.js)"
],
"timeout": 60000
}
]
},
"testProviders": [
"@japa/preset-adonis/TestsProvider"
]
}
{
"typescript": true,
"commands": [
"./commands",
"@adonisjs/core/build/commands/index.js",
"@adonisjs/repl/build/commands"
],
"exceptionHandlerNamespace": "App/Exceptions/Handler",
"aliases": {
"App": "app",
"Config": "config",
"Database": "database",
"Contracts": "contracts"
},
"preloads": [
"./start/routes",
"./start/kernel"
],
"providers": [
"./providers/AppProvider",
"@adonisjs/core",
"./providers/DatabaseProvider"
],
"aceProviders": [
"@adonisjs/repl"
],
"tests": {
"suites": [
{
"name": "functional",
"files": [
"tests/functional/**/*.spec(.ts|.js)"
],
"timeout": 60000
}
]
},
"testProviders": [
"@japa/preset-adonis/TestsProvider"
]
}
15 replies