Comments (5)
hi, lenis exposes a .esm.js file, maybe your webpack config doesn't support it.
I'm not sure how to do it with webpack but i've found this issue.
from lenis.
Unexpected token (53:11) - You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file.
would you mind sharing your webpack config?
from lenis.
@arzafran
`const mix = require("laravel-mix");
/* |
---|
Mix Asset Management |
-------------------------------------------------------------------------- |
|
| Mix provides a clean, fluent API for defining some Webpack build steps
| for your Laravel application. By default, we are compiling the Sass
| file for the application as well as bundling up all the JS files.
|
*/
mix.autoload({
jquery: [
"$",
"window.jQuery",
"jQuery",
"window.$",
"jquery",
"window.jquery",
],
});
mix.setPublicPath("../public_html");
mix
.copyDirectory("resources/admin/assets", "../public_html/@admin/assets")
.copyDirectory(
"node_modules/quill/dist",
"../public_html/@admin/assets/plugins/[email protected]"
)
// Arquivos do site
.sass(
"resources/site/assets/sass/vendor.scss",
"../public_html/assets/css/vendor.css"
)
.options({
processCssUrls: false,
})
.sass(
"resources/site/assets/sass/main.scss",
"../public_html/assets/css/main.css"
)
.options({
processCssUrls: false,
})
.js(
"resources/site/assets/js/vendor.js",
"../public_html/assets/js/vendor.js"
)
.js("resources/site/assets/js/main.js", "../public_html/assets/js/main.js")
.js(
"resources/site/assets/js/pages/home.js",
"../public_html/assets/js/pages/home.js"
)
.sourceMaps();
mix
.copy("resources/site/assets/fonts", "../public_html/assets/fonts")
.copy("resources/site/assets/img", "../public_html/assets/img")
.copy("resources/site/assets/json", "../public_html/assets/json")
.copy("resources/site/assets/svg", "../public_html/assets/svg")
.copy(
"node_modules/@fortawesome/fontawesome-free/webfonts",
"../public_html/assets/webfonts"
)
.browserSync({
proxy: "localhost:8000",
files: [
"resources//.",
"app/Http/Controllers//.",
"app/Models/.php",
"routes/.php",
],
})
.version();
`
from lenis.
hmm i'm not sure this is your webpack config file or at least i don't see any references to lenis being imported there 🤔
from lenis.
Will close it since it's impossible to reproduce without having any more information, feel free to open a new one if the error persists!
from lenis.
Related Issues (20)
- Optionally disable smooth scrolling on trackpads HOT 3
- Disable lenis on html elements programmatically (alternative to data-lenis-prevent) HOT 4
- [QUESTION] GSAP ScrollTrigger integration still required? HOT 4
- Setting velocity does not seem to have any effect HOT 2
- Lenis is lagging with GSAP in Nextjv13 Page Router HOT 3
- Lenis conflict with WebGl canvas and .lenis-scrolling class is present on html tag HOT 1
- Horizontal instance nested within vertical root instance - parent's vertical scroll not respected
- smoothWheel's default value is `true` and not `false` as stated in the README HOT 1
- Smooth nested scroll HOT 5
- Smooth Scrolling Issue with `content` and `wrapper` in iOS Safari HOT 3
- scrollTo sometimes produces -1px offset on top when given HTMLElement as target HOT 2
- Weird mousewheel behaviour HOT 1
- "background-attachment" property causes janky scrolling on Safari
- New website for the showcase list
- Problem scrolling on the blog HOT 3
- weird style HOT 1
- Scrolling does not work in native dialog boxes HOT 1
- scrollTo sometimes does not complete when using a touchpad HOT 1
- Is it possible to use two instances of Lenis? One in the body and another inside a modal? HOT 1
- ScrollTrigger.normalizeScroll(true) making Lenis unresponsive on Firefox Desktop HOT 13
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lenis.