M
M
Mykhailo Nikolaiev2020-09-27 15:09:35
JavaScript
Mykhailo Nikolaiev, 2020-09-27 15:09:35

Error when viewing on GitHub?



Module import error when uploading

to GitHub: import declarations may only appear at top level of a

module ?https://github.com/...

https://github.com/ab3MN/HomeWorks/tree/master/gallery

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
GrayHorse, 2020-09-27
@ab3

Turn on Github Pages in two clicks in the settings.
And replace: with All. https://ab3MN.github.io/HomeWorks/gallery
import gallery from '/gallery-items.js';
import gallery from './gallery-items.js';

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question