NUKnightLab / NUKnightLab/StoryMapJS

Uncaught Error: No value provided for variable {s}

Open
#433 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
248
Forks
61
Avg merge
1m
Merged PRs (30d)
1

Description

I am trying to follow the instructions here https://storymap.knightlab.com/advanced/ to render local pictures in a storymap.

The html and pictures are locally stored and I am using "python -m http.server" to serve the html.

But the leaflet map does not load. I am getting the exception below.

Browser traceback:
Uncaught Error: No value provided for variable {s} at storymap-min.js:8
at String.replace ()
at Object.template (storymap-min.js:8)
at NewClass.getTileUrl (storymap-min.js:10)
at NewClass._loadTile (storymap-min.js:10)
at NewClass._addTile (storymap-min.js:10)
at NewClass._addTilesFromCenterOut (storymap-min.js:10)
at NewClass._update (storymap-min.js:10)
at NewClass.wrapperFn [as _limitedUpdate] (storymap-min.js:8)
at NewClass.fireEvent (storymap-min.js:8)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the advanced instructions and reproduce the failure using the local HTML, pictures, and python -m http.server. Trace the template and getTileUrl calls in storymap-min.js to identify which variable is missing. Done means the Leaflet map loads without the {s} error in this local setup.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend, web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.