Giter Club home page Giter Club logo

Comments (5)

clementroche avatar clementroche commented on September 15, 2024

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.

arzafran avatar arzafran commented on September 15, 2024

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.

tiagopc avatar tiagopc commented on September 15, 2024

@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.

arzafran avatar arzafran commented on September 15, 2024

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.

arzafran avatar arzafran commented on September 15, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.