Description
openedon Aug 11, 2023
Which package(s) does this bug affect?
- Create Plugin
- Sign Plugin
Package versions
1.10.0
What happened?
So i freshly installed grafana in docker, everything is setup newly fresh and configs are set default (only plugin folder locaiton in grafana.ini is uncommented).
Creation of new plugin throught npx is okay i runned yarn install and everythings seems fine. But when i use yarn build / dev
Yarn newly throws this error.
I didnt touch any configuration of this plugin, everything is freshly installed.
(This plugin is named test, also tested other names, not the issue.)
warning package.json: "test" is also the name of a node core module
$ webpack -c ./.config/webpack/webpack.config.ts --env production
thread '' panicked at 'base_dir(./src) must be absolute. Please ensure that jsc.baseUrl
is specified correctly.', /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/swc_ecma_transforms_module-0.173.28/src/path.rs:104:13
note: run with RUST_BACKTRACE=1
environment variable to display a backtrace
assets by status 15.9 KiB [cached] 6 assets
./module.ts 39 bytes [built] [1 error]
ERROR in ./module.ts
Module build failed (from ../node_modules/swc-loader/src/index.js):
Error: failed to handle: base_dir(./src) must be absolute. Please ensure that jsc.baseUrl
is specified correctly.
What you expected to happen
It should build like any other time.
How to reproduce it (as minimally and precisely as possible)
- In this environment...
Docker grafana/grafana-enterprise:latest - With this config...
Default docker config - Run yarn dev / yarn build / npm run dev
- See error...
thread '' panicked at 'base_dir(./src) must be absolute. Please ensure thatjsc.baseUrl
is specified correctly.', /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/swc_ecma_transforms_module-0.173.28/src/path.rs:104:13
note: run withRUST_BACKTRACE=1
environment variable to display a backtrace
assets by status 15.9 KiB [cached] 6 assets
./module.ts 39 bytes [built] [1 error]
ERROR in ./module.ts
Module build failed (from ../node_modules/swc-loader/src/index.js):
Error: failed to handle: base_dir(./src) must be absolute. Please ensure that jsc.baseUrl
is specified correctly.
webpack 5.88.2 compiled with 1 error in 3826 ms
error Command failed with exit code 1.
Environment
System:
OS: Linux 5.15 Alpine Linux
CPU: (8) x64 Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz
Memory: 13.58 GB / 15.60 GB
Container: Yes
Shell: 1.35.0 - /bin/ash
Binaries:
Node: 18.17.0 - /usr/bin/node
Yarn: 1.22.19 - /usr/local/bin/yarn
npm: 9.1.2 - /usr/bin/npm
npmPackages:
@grafana/data: 9.5.3 => 9.5.3
@grafana/e2e: 9.5.3 => 9.5.3
@grafana/e2e-selectors: 9.5.3 => 9.5.3
@grafana/eslint-config: ^6.0.0 => 6.0.0
@grafana/runtime: 9.5.3 => 9.5.3
@grafana/tsconfig: ^1.2.0-rc1 => 1.2.0-rc1
@grafana/ui: 9.5.3 => 9.5.3
Additional context
No response
Metadata
Assignees
Labels
Type
Projects
Status
🚀 Shipped