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

Can't run dependent-project example #172

Open
chrisj opened this issue Oct 28, 2019 · 2 comments
Open

Can't run dependent-project example #172

chrisj opened this issue Oct 28, 2019 · 2 comments

Comments

@chrisj
Copy link
Contributor

chrisj commented Oct 28, 2019

I was able to get the dependent-project to work via git sobmodules but if I try the npm approach, I first get

You should not need to recompile .ts files there, but if you really want to, use the allowTsInNodeModules option. See: https://github.com/Microsoft/TypeScript/issues/12358

If I enable that option, I just get a lot of errors like

ERROR in ./node_modules/neuroglancer/src/neuroglancer/datasource/render/frontend.ts
    Module build failed (from ./node_modules/ts-loader/index.js):
    Error: TypeScript emitted no output for /Users/chrisj/dev/tmp/neuroglancer/examples/dependent-project/node_modules/neuroglancer/src/neuroglancer/datasource/render/frontend.ts.
@abf7d
Copy link

abf7d commented Apr 2, 2020

I am encountering similar errors. I am trying to see if I can use Neuroglancer with Angular. Can you explain how you use git submodules?

@abf7d
Copy link

abf7d commented Apr 2, 2020

Nevermind. I added a param in the path property in the tsconfig.json:
"neuroglancer/": ["./node_modules/neuroglancer/src/neuroglancer/"],
then ran "npm link" from the neuroglancer project and "npm link neuroglancer" from the dependent-project. Then I ran it and it worked.

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