pldn / LDWizard

🧙 LDWizard: A generic framework for simplifying the creation of linked data. Supported by the PLDN community.
European Union Public License 1.2
13 stars 7 forks source link

Failed to compile LD-Wizard when following instructions in CONFIGURING.md #99

Closed WvandenBerg closed 1 year ago

WvandenBerg commented 1 year ago

Steps to reproduce

I used VS Code to create a new WSL window and clone the LD Wizard repository. From there on I follow the instructions in CONFIGURING.md. Step 6 is where I get the following error.

Error message

yarn exec v1.22.19
Config found at /home/wouter/LDWizard/my-wizard/config.ts
Start webpack compilation
[LD-Wizard] Compiling 
{
  file: '/home/wouter/LDWizard/node_modules/@pldn/ldwizard/tsconfig-build.json',
  loc: '/home/wouter/LDWizard/node_modules/@pldn/ldwizard/tsconfig-build.json',
  message: '[tsl] ERROR\n' +
    "      TS6059: File '/home/wouter/LDWizard/node_modules/@pldn/ldwizard/src/components/Svg/index.tsx' is not under 'rootDir' '/home/wouter/LDWizard/my-wizard'. 'rootDir' is expected to contain all source files.\n" +
    '  The file is in the program because:\n' +
    '    Root file specified for compilation',
  details: 'ts-loader-default_dd6d005c3ea515f5',
  stack: 'Error: [tsl] ERROR\n' +
    "      TS6059: File '/home/wouter/LDWizard/node_modules/@pldn/ldwizard/src/components/Svg/index.tsx' is not under 'rootDir' '/home/wouter/LDWizard/my-wizard'. 'rootDir' is expected to contain all source files.\n" +
    '  The file is in the program because:\n' +
    '    Root file specified for compilation\n' +
    '    at makeError (/home/wouter/LDWizard/node_modules/ts-loader/dist/utils.js:93:19)\n' +
    '    at /home/wouter/LDWizard/node_modules/ts-loader/dist/utils.js:63:27\n' +
    '    at Array.map (<anonymous>)\n' +
    '    at formatErrors (/home/wouter/LDWizard/node_modules/ts-loader/dist/utils.js:46:14)\n' +
    '    at provideCompilerOptionDiagnosticErrorsToWebpack (/home/wouter/LDWizard/node_modules/ts-loader/dist/after-compile.js:54:49)\n' +
    '    at /home/wouter/LDWizard/node_modules/ts-loader/dist/after-compile.js:30:9\n' +
    '    at /home/wouter/LDWizard/node_modules/ts-loader/dist/instances.js:203:13\n' +
    '    at fn (/home/wouter/LDWizard/node_modules/webpack/lib/Compilation.js:478:10)\n' +
    '    at _next0 (eval at create (/home/wouter/LDWizard/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:63:1)\n' +
    '    at eval (eval at create (/home/wouter/LDWizard/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:76:1)\n' +
    '    at /home/wouter/LDWizard/node_modules/webpack/lib/Compilation.js:521:10\n' +
    '    at /home/wouter/LDWizard/node_modules/html-webpack-plugin/lib/cached-child-compiler.js:267:53\n' +
    '    at runMicrotasks (<anonymous>)\n' +
    '    at processTicksAndRejections (node:internal/process/task_queues:96:5)'
}
Something went wrong: Failed to compile LD-Wizard
error Command failed.
Exit code: 1
Command: ldwizard-build
Arguments: config.ts
Directory: /home/wouter/LDWizard/my-wizard
Output:

info Visit https://yarnpkg.com/en/docs/cli/exec for documentation about this command.
philipperenzen commented 1 year ago

@WvandenBerg the CONFIGURING.md and packages were updated in the newest version of the @pldn/ldwizard package, it should work without throwing errors.

I'll close this issue for now, but please reopen the issue if the installation errors persist.