CodingTrain / CodingTrain/Suggestion-Box

CreateP is not defined

Aperta
#971 6 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Question
Lingua principale
Nessun dato sulla lingua
Stelle
570
Fork
85
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

I am learning the html_css based on your tutorial. I use Atom as my editor. I put the p5.js, p5.dom.js, and p5.sound.js into one folder called libraries. And then put this folder and the index.html, the sketch into one folder called html_css_learning. However, when I write the code"createP("Your roll point is like below.");" , there is an error "CreateP is not defined". and "libraries/addons/p5.dom.js 404 (Not Found)"

I am new for programming. Please help!

**Here is my libraries.**
```html




body {padding: 0; margin: 0;}







This is my first website!


"Welcom to my website. I am looking forward to seeing how it goes!"


```

**This is the error.**
GET http://127.0.0.1:3000/html_1/libraries/addons/p5.dom.js 404 (Not Found)

Uncaught ReferenceError: createP is not defined
at setup (sketch.js:5)
at p5. (p5.js:46551)
at p5. (p5.js:46486)
at new p5 (p5.js:46775)
at _globalInit (p5.js:48785)
setup @ sketch.js:5
(anonymous) @ p5.js:46551
(anonymous) @ p5.js:46486
p5 @ p5.js:46775
_globalInit @ p5.js:48785

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

Start with index.html and sketch.js, then check the script paths under the libraries directory against the reported 404 for p5.dom.js. Verify the referenced p5 libraries load before sketch.js; done means the 404 is gone and createP works in setup without a ReferenceError.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
javascript
Ambito
frontend
Tipo di issue
Bug
Difficoltà
2/5
Tempo stimato
1-3 ore
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.