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

Missing config stub #13

Open
k1rana opened this issue Feb 19, 2025 · 3 comments
Open

Missing config stub #13

k1rana opened this issue Feb 19, 2025 · 3 comments

Comments

@k1rana
Copy link

k1rana commented Feb 19, 2025

I checked the package directory, and it seems like the stub file is missing and i unable to configure the package.

Steps to Reproduce

  1. Run node ace add @rlanz/sentry
  2. Error appears
node ace add @rlanz/sentry 
(node:3290) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
[ info ] Installing the package using the following command : pnpm add @rlanz/sentry
❯ Continue ? (Y/n) · true
[ wait ] installing @rlanz/sentry using pnpm .  
[ wait ] package installed successfully ...

   RuntimeException: Unable to configure package "@rlanz/sentry"
 

  [cause] {
     RuntimeException: Unable to find stub "config/sentry.stub"
         at StubsManager.build (file:///Users/trywibowo/Projects/be-ruangnakes/node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected]/node_modules/@adonisjs/application/build/manager-SLF47P6C.js:278:13)
         at async Codemods.makeUsingStub (file:///Users/trywibowo/Projects/be-ruangnakes/node_modules/.pnpm/@[email protected]_@[email protected][email protected]__@[email protected][email protected]/node_modules/@adonisjs/core/build/modules/ace/codemods.js:227:22)
         at async Module.configure (file:///Users/trywibowo/Projects/be-ruangnakes/node_modules/.pnpm/@[email protected]/node_modules/@rlanz/sentry/build/configure.js:18:5)
         at async Configure.run (file:///Users/trywibowo/Projects/be-ruangnakes/node_modules/.pnpm/@[email protected]_@[email protected][email protected]__@[email protected][email protected]/node_modules/@adonisjs/core/build/commands/configure.js:134:13)
         at async Configure.exec (file:///Users/trywibowo/Projects/be-ruangnakes/node_modules/.pnpm/@[email protected]_@[email protected][email protected]__@[email protected][email protected]/node_modules/@adonisjs/core/build/modules/ace/commands.js:51:28)
         at async #exec (file:///Users/trywibowo/Projects/be-ruangnakes/node_modules/.pnpm/@[email protected]/node_modules/@adonisjs/ace/build/index.js:1442:5)
         at async #configurePackage (file:///Users/trywibowo/Projects/be-ruangnakes/node_modules/.pnpm/@[email protected]_@[email protected][email protected]__@[email protected][email protected]/node_modules/@adonisjs/core/build/commands/add.js:54:16)
         at async Add.run (file:///Users/trywibowo/Projects/be-ruangnakes/node_modules/.pnpm/@[email protected]_@[email protected][email protected]__@[email protected][email protected]/node_modules/@adonisjs/core/build/commands/add.js:123:30)
         at async Add.exec (file:///Users/trywibowo/Projects/be-ruangnakes/node_modules/.pnpm/@[email protected]_@[email protected][email protected]__@[email protected][email protected]/node_modules/@adonisjs/core/build/modules/ace/commands.js:51:28)
         at async #execMain (file:///Users/trywibowo/Projects/be-ruangnakes/node_modules/.pnpm/@[email protected]/node_modules/@adonisjs/ace/build/index.js:1483:7) {
       status: 500,
       code: 'E_RUNTIME_EXCEPTION',
       [cause]: 'Scanned locations: \n' +
         '/Users/trywibowo/Projects/be-ruangnakes/stubs\n' +
         '/Users/trywibowo/Projects/be-ruangnakes/node_modules/.pnpm/@[email protected]/node_modules/@rlanz/sentry/build/stubs'
     }
  }

Expected Behavior

The package should generate the necessary config file automatically.

Environment

  • AdonisJS Version: 6.17.0
  • Node.js Version: 20.11.1
  • Package Version: @rlanz/sentry v0.3.0
  • OS: MacOS Sequoia 15.1.1

Additional Context

Is there a workaround to manually configure this package?

@k1rana
Copy link
Author

k1rana commented Feb 19, 2025

v.0.2.0-0
Image

v.0.3.0
Image

Seems forgot to add stub files to published package in v.0.3.0

@edstevo
Copy link

edstevo commented Feb 20, 2025

I have this same issue:

Image

@edstevo
Copy link

edstevo commented Feb 21, 2025

So, I think I got round this by installing the npm package and manually copying the stub file into my config and calling it "sentry.ts"

Seems to be working fine.

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

2 participants