Coder Social home page Coder Social logo

Failing to compile about the-traveler HOT 8 CLOSED

cozyrobinson avatar cozyrobinson commented on June 3, 2024
Failing to compile

from the-traveler.

Comments (8)

alexanderwe avatar alexanderwe commented on June 3, 2024

Hi @cozyrobinson, thank you for opening this issue 👍

I am not very proficient with Angular on particular but it seems that this is not directly related to the traveler package itself. At least this is what I would assume by the error log you provided.

Do you have any code or repository which is a minimal reproducible example, where you can show the error ? So basically which I can clone and test locally on my machine ?

from the-traveler.

cozyrobinson avatar cozyrobinson commented on June 3, 2024

Thanks for responding!

I use bitbucket, if that's okay: https://bitbucket.org/drift_cody/testiny/overview

from the-traveler.

alexanderwe avatar alexanderwe commented on June 3, 2024

Sure, Bitbucket is not a problem. But it seems your repository does not contain any code ?

from the-traveler.

cozyrobinson avatar cozyrobinson commented on June 3, 2024

Oops, try now.

from the-traveler.

alexanderwe avatar alexanderwe commented on June 3, 2024

Thanks a lot for the code

I checked your project and you are right, with the-traveler as a dependency it doesn't compile. At first I was a little bit confused but then I quickly realised what's the problem here. I am sorry that I did not thought of it on the first place.

The dependencies of the the-travler are depend on a Node environment. For example the fs module which will give you access to the file system. It is used to interact with the manifest files. But the angular-cli will create a browser application which does not run in a Node environment. That is why you get all those errors of modules not being found while compiling. They are simply not available in the browser. For reference see this comment: angular/angular-cli#8272 (comment)

So you are only able to use the library in a Node environment.

from the-traveler.

cozyrobinson avatar cozyrobinson commented on June 3, 2024

from the-traveler.

alexanderwe avatar alexanderwe commented on June 3, 2024

I am really sorry to say this, but if you want to use it as a browser module - no. Unfortunately there is now way to use it since it relies on other modules which are only available in a Node environment.

What you could do, is set up a Node server, which is running the library and expose it results trough an API but I think this is not what you want to do. Just a thought that came into my mind.

from the-traveler.

alexanderwe avatar alexanderwe commented on June 3, 2024

I will close this issue for now. If you still have some other doubts or questions please do not hesitate to ask

from the-traveler.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.