It’s because you’re using an import statement in the script tag for single.php. You would only use the import statement in an ES module as shown in your screen capture.
Because you’re enqueueing the script in functions.php, glide.js is available globally and you should remove the import statement from the script tag and glide will be initialized.
Alternately, you could take advantage of a CDN as described here https://glidejs.com/docs/setup/ to host the code.
Related Posts:
- Uncaught SyntaxError: Unexpected token u in JSON at position 0
- How fix ‘Failed to load resource: the server responded with a status of 403’?
- JavaScript error (Uncaught SyntaxError: Unexpected end of input)
- No visible cause for “Unexpected token ILLEGAL”
- Syntax error: Illegal return statement in JavaScript
- TypeError: $ is not a function WordPress
- Unexpected token < in first line of HTML
- Uncaught SyntaxError: Unexpected token var
- is it posible to add anime.js in WordPress
- What does href expression do?
- Kadane’s algorithm explained
- How to handle Uncaught (in promise) DOMException: The play() request was interrupted by a call to pause()
- How do I make the first letter of a string uppercase in JavaScript?
- How to format a JavaScript date
- How can I check for “undefined” in JavaScript? [duplicate]
- How can I reverse an array in JavaScript without using libraries?
- Download File Using JavaScript/jQuery
- Disabling and enabling a html input button
- How do I test for an empty JavaScript object?
- TypeScript React.FC
confusion - TypeError: Cannot read property ‘then’ of undefined
- Infinite Scrolling in Asp.Net MVC with jQuery / AJAX Issues
- How to use php code in javascript
- How to read xml file contents in jQuery and display in html elements?
- using lodash .groupBy. how to add your own keys for grouped output?
- Uncaught ReferenceError: google is not defined when trying to use Google Places API without a map
- Why is window.showModalDialog deprecated? What to use instead?
- Should I use JSLint or JSHint JavaScript validation?
- How can I print using JQuery
- Short circuit Array.forEach like calling break
- How do I get the current time only in JavaScript
- Angular: conditional class with *ngClass
- Failed to compile. Module not found: Can’t resolve ‘react-router-dom’
- How to send an email from JavaScript
- MissingSchemaError: Schema hasn’t been registered for model “User”
- classical inheritance vs prototypal inheritance in javascript
- React’s setState method with prevState argument
- How to measure time taken by a function to execute
- var.replace is not a function
- Uncaught TypeError: Cannot read property ‘call’ of undefined at __webpack_require__
- Async/await in componentDidMount to load in correct order
- Dynamically load JS inside JS
- This.props.dispatch not a function – React-Redux
- this vs $(this)
- How to open a URL in a new Tab using JavaScript or jQuery?
- How to sort an object array by date property?
- React router not showing browser history
- How to define DO NOTHING in JavaScript
- How to get the difference between two arrays in JavaScript?
- How to sort an array of integers correctly
- Failed to execute ‘postMessage’ on ‘DOMWindow’: https://www.youtube.com !== http://localhost:9000
- How can I check whether a radio button is selected with JavaScript?
- JavaScript button onclick not working
- What counts as CPU Intensive tasks (eg. sorting, searching etc?)
- HTML make text clickable without making it a hyperlink
- Uncaught ReferenceError: React is not defined
- How to get the browser viewport dimensions?
- Ajax success function
- What is the equivalent of Java’s System.out.println() in Javascript?
- How can I exit from a javascript function? [duplicate]
- Object doesn’t support property or method ‘addEventListener’
- How to fix javascript .toFixed is not a Function error
- jQuery checkbox checked state changed event
- Javascript, viewing [object HTMLInputElement]
- How to use wordpress default Password Strength Meter script
- wp_enqueue_script() not working at all
- Script to run at completion of Page Loading
- Documentation for IDE’s
- Cloudflare’s Rocket Loader + WordPress -> Ignore scripts?
- Get HTTP response code on non-2xx apiFetch request
- What’s the handle for media.js?
- Add custom HTML markup to Gutenberg RichText
- Enqueue scripts all over but not in single.php
- Multiple media uploader buttons target only one input on the same page
- why code javascript ,not repeat the loop main wordpress
- Adjusting jquery for WordPress
- Enqueue scripts based on browser width?
- Adding code to head to all pages manually
- Javascript on Registration Page
- Gutenberg dependencies in package.json
- Homepage js is conflicting with js of plugin of other page
- How to display/hide accordion? [closed]
- Unable to remove meta box from custom post for all non admin users
- how can i send this to wp_head – escape problem
- Append html to div
- Change each text after 4 second and each image after 2 second
- Hook a script as the very last one before the closing body tag
- Problem extending a core block
- wp post_tag change minlength
- google pie chart in wordpress
- How to locate the js code and php code for certain function?
- Insert HTML markup to page content from the Media Frame modal
- Call javascript function when add_attachment hook fires
- create to search column
- Convert javascript running xml files to wordpress platform
- How do I find stylesheet & javascript handles? [duplicate]
- Broken links help with site
- Registration fields prefilled with URL parameters
- Divi Carousel/ Slider – How to slide two sliders with a single button
- WordPress adds and tags into HTML blocks after saving