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

[typescript] [13.basic-bot] Bad configuration on tsconfig.json #166

Open
Batta32 opened this issue Dec 14, 2018 · 1 comment
Open

[typescript] [13.basic-bot] Bad configuration on tsconfig.json #166

Batta32 opened this issue Dec 14, 2018 · 1 comment

Comments

@Batta32
Copy link

Batta32 commented Dec 14, 2018

Sample Information

  1. Sample type: samples
  2. Sample language: typescript
  3. Sample name: basic-bot

Describe the Bug

Building the sample gives a bad configuration (structure) of the files in lib directory.

To Reproduce

Steps to reproduce the behavior:

  1. Follow the README instructions.
  2. Execute npm build command.
  3. Look the lib directory created.
  4. Execute npm start.
  5. See error.

Expected Behavior

Build the solution and start the bot.

Screenshots

image

image

Additional Context

The issue is that the tsconfig.json is setted to transpile the "src" and the "resources" folders, but the resources folder has nothing to transpile. The result of this configuration is the creation of the "src" subfolder inside the "lib" folder. This breaks the node run command and some of the objects references inside the project that points to the "lib" root folder instead of the "src" subfolder.

Proposed Solution

Replace in tsconfig.json:
"rootDirs": ["./src", "./resources"] ----> rootDir": "./src",

The solution would be just to compile only the "src" folder.

@VictorGrycuk
Copy link

Hi! Could you please add a markdown link to the readme file in the To Reproduce steps?

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