Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jan 25 19:26
    austinkelleher added as member
  • Jan 15 13:32
    Priestch starred lasso-js/lasso
  • Jan 15 03:02
    dependabot[bot] labeled #317
  • Jan 15 03:02
    dependabot[bot] opened #317
  • Jan 15 03:02

    dependabot[bot] on npm_and_yarn

    Bump shelljs from 0.8.2 to 0.8.… (compare)

  • Dec 27 2021 18:28
    0xae starred lasso-js/lasso
  • Dec 16 2021 03:12
    ENAML starred lasso-js/lasso
  • Nov 14 2021 13:25
  • Nov 04 2021 15:31
    JPritchard9518 opened #316
  • Oct 08 2021 18:30
    rscheuer starred lasso-js/lasso
  • Oct 03 2021 23:23
    mikevel starred lasso-js/lasso
  • Sep 18 2021 14:16
    okmttdhr starred lasso-js/lasso
  • Aug 25 2021 18:32
    emmiep starred lasso-js/lasso
  • Aug 19 2021 18:13

    DylanPiercey on master

    3.4.3 (compare)

  • Aug 19 2021 18:13

    DylanPiercey on v3.4.3

    (compare)

  • Aug 19 2021 18:11

    DylanPiercey on master

    fix: re-enable read/transform c… refactor: html slot building op… (compare)

  • Aug 10 2021 18:29
    dependabot[bot] labeled #315
  • Aug 10 2021 18:29
    dependabot[bot] opened #315
  • Aug 10 2021 18:29

    dependabot[bot] on npm_and_yarn

    Bump path-parse from 1.0.5 to 1… (compare)

  • Jul 31 2021 05:25
    NeroBlackstone starred lasso-js/lasso
André Santos
@andresilvasantos
1 sec
@tcrowe all there now ;)
Tony Crowe
@tcrowe
wow that is weird!
André Santos
@andresilvasantos
yeah, right? it was all working fine without less
probably it's a bug, I don't know
Tony Crowe
@tcrowe
my guess is that it's a bug in lasso-less which i'm testing
André Santos
@andresilvasantos
shall I open a issue there?
André Santos
@andresilvasantos
@patrick-steele-idem created an issue related to this problem: lasso-js/lasso-less#29
Tony Crowe
@tcrowe
@andresilvasantos lol i whipped up a replacement lasso-less plugin and the same bug happens
:crying_cat_face:
André Santos
@andresilvasantos
I didn't get the english, "I whipped up" what does that mean in this context? :D
Tony Crowe
@tcrowe
lol, like cooking. i made a new less plugin but it also does not work.
André Santos
@andresilvasantos
ahaha, google translator wasn't helping here. damn, I guess I'll work in production mode right now or move everything inside components folder
Tony Crowe
@tcrowe

I commented on lasso-js/lasso-less#29

I remembered it's not usually possible to have a <lasso-page> inside a component because it cannot send it to the browser.

André Santos
@andresilvasantos
I'll check if that's the problem then ;)
Tony Crowe
@tcrowe

@andresilvasantos this is another alternative :
https://github.com/tcrowe/marko-less-includes/blob/master/src/index.marko#L28
https://github.com/tcrowe/marko-less-includes/blob/master/src/controllers/index.js#L8

I tried using <include(data.view, data)/> but that does not work. I think the template path must be hard-coded.

I had to figure this out for my project too :squirrel:
André Santos
@andresilvasantos
well, that's a solution
right now, when I'm working on a component, I switch to dev mode, since I'm not moving between pages it's fine
I switch to production mode when I want to test the workflow
not ideal, but as long as it works, ehehe
Tony Crowe
@tcrowe
It's less convenient that using <site-layout> as you were doing
lol ya
André Santos
@andresilvasantos
but anyway, really happy with marko. it's really a powerful framework. Just lacking the scoped styling per component
Tony Crowe
@tcrowe
i think it does support that though
André Santos
@andresilvasantos
still not: marko-js/marko#666
right now I have to prefix all my element classes with the abbreviation name of the parent component to avoid issues
Tony Crowe
@tcrowe
oh, i didn't understand correctly. you're right
Dustin Deus
@StarpTech
Here is the updated section about the plugin system https://hemerajs.github.io/hemera/1_plugins.html
Daniel Pham
@nguyenpc

Hi all,

Is there anyone here can get project runs with lasso-jsx? https://github.com/lasso-js/lasso-jsx

I'm developing a project that based on Node Express and MarkoJS as view engine (template rendering only)
I intend to using react on some page but it seems lasso doesn't understand jsx.
image.png
Here is the error I got when running my site.
Here is my lasso configuration in app.js
image.png
Thanks for any helps
Patrick Steele-Idem
@patrick-steele-idem
@nguyenpc sorry for the delayed reply, but better late than never. Instead of lasso-jsx you should just use the the lasso-babel-transform to do the JSX transpiling: https://github.com/lasso-js/lasso-babel-transform
Brandon Istenes
@brandones

Hi, I'm having trouble getting conditional remapping to work. In my package.json I have

"browser": {
  "fs": false
}

But when I do require('gcommon') (a local module for shared code that I have linked in) I get

Caused by: Error: Failed to walk dependency [require: ./config]. Dependency chain: [require: /Users/bistenes/Code/project/web/src/components/services-app.marko] → [require: ./map.marko] → [req
uire: /Users/bistenes/Code/project/web/src/components/map.marko] → [require: gcommon] → [require: ./config]. Cause: Error: Failed to walk dependency [require: nconf]. Dependency chain: [require: /
Users/bistenes/Code/project/web/src/components/services-app.marko] → [require: ./map.marko] → [require: /Users/bistenes/Code/project/web/src/components/map.marko] → [require: gcommon] → [require:
 ./config] → [require: nconf]. Cause: Error: Failed to walk dependency [require: ./nconf/common]. Dependency chain:[require: /Users/bistenes/Code/project/web/src/components/services-app.marko] → [
require: ./map.marko] → [require: /Users/bistenes/Code/project/web/src/components/map.marko] → [require: gcommon] → [require: ./config] → [require: nconf] → [require: ./nconf/common]. Cause: Error
: Failed to resolve "fs". Target file does not exist. Started search from directory "/Users/bistenes/Code/project/web/node_modules/gcommon/node_modules/nconf/lib/nconf".
Yoni Medoff
@yomed
@brandones Do you have that package.json as its own file, local to that component directory?
Brandon Istenes
@brandones
Magically couldn't repro. I guess I musta turned it off and turned it on again. (for posterity, yes, the browser configuration was provided in gcommon/package.json. I reckon I just needed to clear caches or something.)
Brandon Istenes
@brandones
Ah, emm, I take that back. It wasn't happening when running my app, but rather when building with marko-starter. I'm getting maybe 100 lines of similar output, it seems to be in some kind of loop.
Most of the error is pasted here
Brandon Istenes
@brandones
The same browser config line exists in web/package.json.
Brandon Istenes
@brandones
Ping?
Brandon Istenes
@brandones
?
Patrick Steele-Idem
@patrick-steele-idem
@brandones IIt looks like you are trying to bundle up a module for the browser that only works on the server and it looks like it's starting from you importing gcommon in src/components/map.marko. The .marko file is getting compiled to .js and being bundled up and sent to the browser, along with all of its dependencies. There's a transitive dependency on the fs module and the file system module only works on the server
@brandones Take a look at the following: https://github.com/defunctzombie/package-browser-field-spec
Ahmet Can Güven
@Acanguven
I am trying to implement offline pages with service workers using markojs. I only want to cache offline.html but its built with marko and lasso. So all the .css, .js files are coming as external fingerprinted files.
Is there a way to make lasso put them inline into same offline.html file?
Ahmet Can Güven
@Acanguven
Fixed the problem by caching the fingerprinted files with regex.