Giter VIP home page Giter VIP logo

Comments (12)

AmitMY avatar AmitMY commented on August 20, 2024
  1. What node version are you using node --version
  2. What is the output of ls node_modules/leaflet/ (is the module installed?)
  3. If it is installed, what is the output of ls node_modules/leaflet/dist

from translate.

AaryanNagaria avatar AaryanNagaria commented on August 20, 2024

Node Version: v20.11.1

Output of ls node_modules/leaflet/:
CHANGELOG.md README.md package.json
LICENSE dist src

Output of ls node_modules/leaflet/dist:
images leaflet-src.js leaflet.js
leaflet-src.esm.js leaflet-src.js.map leaflet.js.map
leaflet-src.esm.js.map leaflet.css

from translate.

AmitMY avatar AmitMY commented on August 20, 2024

hmm... your error is:

Can't resolve './node_modules/leaflet/dist/leaflet.css' in '/Users/aaryannagaria/Documents/translate/translate'

To me that means that if you run:

cd /Users/aaryannagaria/Documents/translate/translate
cat ./node_modules/leaflet/dist/leaflet.css

it should say the file does not exist, but from the output you sent me, the file does exist. So are you still getting this error?

If so, do you mind recording your screen, and running the following commands?

git clone https://github.com/sign/translate.git
cd translate
npm install
npm start

from translate.

AaryanNagaria avatar AaryanNagaria commented on August 20, 2024
Screen.Recording.2024-03-03.at.10.13.27.AM_compressed.mp4

This is my output, and everything is seeming to run fine now, but when I try to run npm test, it won't et me type anything.

from translate.

AmitMY avatar AmitMY commented on August 20, 2024

Happy it runs fine now. (for future referece, the video is too compressed, I can't read anything, but I can see that it works)

npm test should run tests, not let you type. what do you mean by that?

from translate.

AaryanNagaria avatar AaryanNagaria commented on August 20, 2024

After I run npm start, it doesn’t give me a place to type npm test.
Screenshot 2024-03-05 at 2 14 32 PM

from translate.

AmitMY avatar AmitMY commented on August 20, 2024

I see. yes, npm start starts a process that does not end. you can open http://localhost:4200 to see the site.

If you want to run test, you need to do that in another process. Open another terminal window, and run npm test

from translate.

AaryanNagaria avatar AaryanNagaria commented on August 20, 2024

I did that and this came up

Last login: Tue Mar 5 19:15:55 on ttys003
aaryannagaria@Aaryans-MBP ~ % npm test

@sign/[email protected] test
ng test --code-coverage

Error: This command is not available when running the Angular CLI outside a workspace.
aaryannagaria@Aaryans-MBP ~ %

from translate.

AmitMY avatar AmitMY commented on August 20, 2024

You have to run it in the directory of the project, not in ~

from translate.

AaryanNagaria avatar AaryanNagaria commented on August 20, 2024

I tried it and it worker. After I did that, it opened a tab on my google chrome, what should I do next?

from translate.

AmitMY avatar AmitMY commented on August 20, 2024

It depends what you want to do.
If you want to test - https://angular.io/guide/testing
If you want to run - https://angular.io/start

from translate.

AaryanNagaria avatar AaryanNagaria commented on August 20, 2024

What should I do if I want to run your app.

from translate.

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.