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

parcel-transformer-ttypescript: Debug Failure #35

Open
khusamov opened this issue Mar 28, 2022 · 2 comments
Open

parcel-transformer-ttypescript: Debug Failure #35

khusamov opened this issue Mar 28, 2022 · 2 comments
Labels
enhancement New feature or request help wanted Extra attention is needed Needs Investigation Needs Investigation
Milestone

Comments

@khusamov
Copy link

Hello!
Great project!

But it doesn't seem to work on Parcel.
I have prepared a repository in which I localized the error.
https://github.com/khusamov/temp-tst-reflect-on-parcel-errors

Is there any way to fix this?

Source file:

import { getType, Type } from "tst-reflect";

interface IAnimal
{
	name: string;
}

class Animal implements IAnimal
{
	constructor(public name: string)
	{
	}
}

const typeOfIAnimal: Type = getType<IAnimal>();
const typeOfAnimal: Type = getType<Animal>();

console.log(typeOfAnimal.isAssignableTo(typeOfIAnimal)); // true

Error:

parcel-transformer-ttypescript: Debug Failure.

  Error: Debug Failure.
  at /Users/khusamov/Documents/repo/github.com/khusamov/temp-tst-reflect-on-parcel-errors/node_modules/typescript/lib/typescript.js:19675:89
  at String.replace (<anonymous>)
  at formatStringFromArgs
  (/Users/khusamov/Documents/repo/github.com/khusamov/temp-tst-reflect-on-parcel-errors/node_modules/typescript/lib/typescript.js:19675:21)
  at Object.createCompilerDiagnostic
  (/Users/khusamov/Documents/repo/github.com/khusamov/temp-tst-reflect-on-parcel-errors/node_modules/typescript/lib/typescript.js:19789:20)
  at tryReadFile
  (/Users/khusamov/Documents/repo/github.com/khusamov/temp-tst-reflect-on-parcel-errors/node_modules/typescript/lib/typescript.js:40090:40)
  at Object.readConfigFile
  (/Users/khusamov/Documents/repo/github.com/khusamov/temp-tst-reflect-on-parcel-errors/node_modules/typescript/lib/typescript.js:40055:32)
  at getConfigReflectionSection
  (/Users/khusamov/Documents/repo/github.com/khusamov/temp-tst-reflect-on-parcel-errors/node_modules/tst-reflect-transformer/dist/config.js:11:23)
  at readConfig
  (/Users/khusamov/Documents/repo/github.com/khusamov/temp-tst-reflect-on-parcel-errors/node_modules/tst-reflect-transformer/dist/config.js:27:24)
  at createConfig
  (/Users/khusamov/Documents/repo/github.com/khusamov/temp-tst-reflect-on-parcel-errors/node_modules/tst-reflect-transformer/dist/config.js:51:20)
  at Activator.prepareConfig
  (/Users/khusamov/Documents/repo/github.com/khusamov/temp-tst-reflect-on-parcel-errors/node_modules/tst-reflect-transformer/dist/contexts/TransformerContext.js:51:50)

@Hookyns
Copy link
Owner

Hookyns commented Mar 28, 2022

Hello and TY.

I'll look into it later today or tomorrow.

@Hookyns Hookyns added enhancement New feature or request help wanted Extra attention is needed Needs Investigation Needs Investigation labels Aug 28, 2022
@buptsb
Copy link

buptsb commented Sep 13, 2022

Same issue here

@Hookyns Hookyns added this to the v1.0.0-alpha milestone Sep 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed Needs Investigation Needs Investigation
Projects
None yet
Development

No branches or pull requests

3 participants