question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to set configuration?

See original GitHub issue

I am making use of import * as mongoose from 'mongoose';

class Vehicle {
    @prop({ unique: true })
    vid?: string;
}

This causes the error… 3:5 - Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' option in your 'tsconfig' or 'jsconfig' to remove this warning.

I created a tsconfig.json file in the notebook directory with { ... "compilerOptions": { "experimentalDecorators": true, ... } } but I see no difference. I suspect I have put the tsconfig.json in the wrong place?

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:1
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
jzhang1commented, Jun 19, 2020

Hi are there future plans to support a tsconfig file? I need to enable -resolveJsonModule in order to import JSON files.

1reaction
yunabecommented, Jan 7, 2020

Internal compiler flags of tslab are defined in https://github.com/yunabe/tslab/blob/master/src/converter.ts (Ctrl-F esModuleInterop).

At this moment, it’s not possible to control the internal compiler flags in tslab. As a short-term solution, I enabled experimentalDecorators in tslab (https://github.com/yunabe/tslab/commit/4ba7e17728b9d8dbd0e74e87e750a2b932bd09f6) and released the new version (v1.0.9).

Read more comments on GitHub >

github_iconTop Results From Across the Web

1.6 Getting Started - First-Time Git Setup
Git comes with a tool called git config that lets you get and set configuration variables that control all aspects of how Git...
Read more >
Set a configuration value from the command line | How-To
This article shows you how to set the value of a configuration setting in the Global scope using the dt.exe command line tool....
Read more >
Create and edit run/debug configurations - Android Developers
You can define new run/debug configurations from the Run/Debug Configurations dialog, the Project window, or the Code Editor. The new configuration must be ......
Read more >
Create and edit configurations - Visual Studio (Windows)
You can use the Configuration Manager dialog box to select or modify existing build configurations, or to create new ones. To open the ......
Read more >
14 Configuring Settings
The Configuration settings page lets you configure InForm settings such as editable system configuration and general settings. 14.2.1 Configuring Editable ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found