GithubHelp home page GithubHelp logo

samuelkraft / routes Goto Github PK

View Code? Open in Web Editor NEW
56.0 3.0 12.0 8.81 MB

Trail Routes - Curated running & hiking trails

Home Page: https://routes.samuelkraft.com

License: MIT License

JavaScript 26.11% CSS 2.89% TypeScript 71.00%
vercel routes trails running hiking maps mapbox

routes's Introduction

This repo contains the source code of Trail Routes

Written with Next.js, Typescript, Tailwind CSS, Mapbox GL, Turf.js Parses gpx files and shows them on a map.

Getting Started

First create a mapbox account and get an access token. Add it as NEXT_PUBLIC_MAPBOX_ACCESS_TOKEN to a file called .env.local.

NEXT_PUBLIC_MAPBOX_ACCESS_TOKEN=

Install dependencies

npm install
# or
yarn

Start the server with

npm run dev
# or
yarn dev

Open http://localhost:3000 with your browser to see the result.

Troubleshooting

If you get an error like fatal error: 'vips/vips8' file not found you need to install the vips package.

brew install vips

routes's People

Contributors

samuelkraft avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

routes's Issues

Flat module not found - Below errors are seen !

Build Succesful - Execution not fine ! Below errors are seen !

npm run dev

[email protected] dev /home/murali/ecotourismgit/routes
next dev

Browserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db
ready - started server on http://localhost:3000
error - ./styles/globals.css (./node_modules/css-loader/dist/cjs.js??ref--5-oneOf-6-1!./node_modules/next/dist/compiled/postcss-loader/cjs.js??ref--5-oneOf-6-2!./styles/globals.css)
TypeError: styles.flatMap is not a function

event - build page: /next/dist/pages/_error
wait - compiling...
error - ./styles/globals.css (./node_modules/css-loader/dist/cjs.js??ref--5-oneOf-6-1!./node_modules/next/dist/compiled/postcss-loader/cjs.js??ref--5-oneOf-6-2!./styles/globals.css)
TypeError: allRules.flat is not a function
{ Error: Cannot find module '/home/murali/ecotourismgit/routes/.next/build-manifest.json'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
at Function.Module._load (internal/modules/cjs/loader.js:562:25)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
at loadComponents (/home/murali/ecotourismgit/routes/node_modules/next/dist/next-server/server/load-components.js:1:1035)
at process._tickCallback (internal/process/next_tick.js:68:7) code: 'MODULE_NOT_FOUND' }

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.