Git Product home page Git Product logo

Comments (11)

xtremespb avatar xtremespb commented on June 12, 2024

Same for me.

ERROR in ../../../../src/shared/marko/src/error404/index.marko?virtual=./index.marko.scss (../../../../node_modules/@marko/webpack/dist/loader/index.js!../../../../src/shared/marko/src/error404/index.marko?virtual=./index.marko.scss)
  Module build failed (from ../../../../node_modules/@marko/webpack/dist/loader/index.js):
  SyntaxError: src\shared\marko\src\error404\index.marko(3,27): Unexpected token
    1 | import { t as _t } from "marko/src/runtime/vdom";
    2 |
  > 3 | var _marko_template = _t();
      |                           ^
    4 |
    5 | export default _marko_template;
    6 | import _zoia from "../../zoia/index.marko";
      at MarkoFile.buildCodeFrameError (C:\Users\mmatveev\Documents\Git\zoia\node_modules\@marko\compiler\dist\babel-plugin\file.js:37:17)
      at tryParse (C:\Users\mmatveev\Documents\Git\zoia\node_modules\@marko\babel-utils\dist\parse.js:33:18)
      at parseExpression (C:\Users\mmatveev\Documents\Git\zoia\node_modules\@marko\babel-utils\dist\parse.js:10:10)
      at C:\Users\mmatveev\Documents\Git\zoia\node_modules\@marko\compiler\dist\babel-plugin\util\parse-attributes.js:47:47
      at Array.map (<anonymous>)
      at _default (C:\Users\mmatveev\Documents\Git\zoia\node_modules\@marko\compiler\dist\babel-plugin\util\parse-attributes.js:9:21)
      at Parser.onOpenTag (C:\Users\mmatveev\Documents\Git\zoia\node_modules\@marko\compiler\dist\babel-plugin\parser.js:270:38)
      at notifyOpenTag (C:\Users\mmatveev\Documents\Git\zoia\node_modules\htmljs-parser\notify-util.js:167:27)
      at finishOpenTag (C:\Users\mmatveev\Documents\Git\zoia\node_modules\htmljs-parser\Parser.js:470:13)
      at Parser.char (C:\Users\mmatveev\Documents\Git\zoia\node_modules\htmljs-parser\Parser.js:2371:29)
   @ ../../../../src/shared/marko/src/error404/index.marko?browser-entry 2:0-86

Getting back to 7.1.4 makes it work. I can give more steps to reproduce when necessary.

from webpack.

DylanPiercey avatar DylanPiercey commented on June 12, 2024

Looks to be a Windows specific issue. We’ll be looking into this shortly, thanks for notifying us!

from webpack.

DylanPiercey avatar DylanPiercey commented on June 12, 2024

Hey @xtremespb and @J-Hoh, I think the @marko/webpack@9 release should fix this issue. If not I can dig further.

from webpack.

J-Hoh avatar J-Hoh commented on June 12, 2024

Yep, latest 9.0.2 works ^^
#NoDeployFriday
Thank you very much for resolving this so quickly!

from webpack.

DylanPiercey avatar DylanPiercey commented on June 12, 2024

Glad to hear, thanks for testing quickly also and of course for reporting the issue 😄

from webpack.

J-Hoh avatar J-Hoh commented on June 12, 2024

Sorry to reopen this issue @DylanPiercey but I did find another bug (please don't ruin your weekend).
Same version problems, working in 7.1.4, bugged in 9.0.2
This time its about the final production webpack built, dev mode works just fine. Sadly I get neither crash nor error message, but it seems like the client side code does not get mounted in browser ?
Server side rendering works just fine, and all the code does get shipped to the browser, but not executed.

Still windows 10 environment, however I just tested it, fresh install on a raspberry pi /w ubuntu and I also get no mounting of components, only server side works flawlessly. Haven't tried switching it back to 7.x on there (builds take forever ;') ) but I'd assume it'd work then, like on windows.
Between installing a different version and building the webpack project, I deleted /dist/ and /node_modules/.cache/

Dep.versions:

  • marko: 5.8.1
  • @marko/compiler: 5.8.1
  • @marko/webpack: 9.0.2 (bugged) / 7.1.4 (working)
  • @marko/fastify: 1.0.2
  • webpack: 5.33.2
  • webpack-cli: 4.5.0

If you need more information / testing, please advise ^^

from webpack.

DylanPiercey avatar DylanPiercey commented on June 12, 2024

@J-Hoh any way you can get a simplified reproduction available and upload to github so I can take a look? I did just get out a release of @marko/compiler and marko which fixes a problem with our new hydration mode, I'd be kinda surprised if it fixes this but might be worth a shot.

from webpack.

J-Hoh avatar J-Hoh commented on June 12, 2024

Here you go.
Might've already found the missing code bit, would submit a pull request but idk where/how you wanna fix that (if that even is the problem)

from webpack.

J-Hoh avatar J-Hoh commented on June 12, 2024

Alas, even on the raspberry pi / ubuntu; the 9.0.2 just doesnt work for me

sad timez

from webpack.

DylanPiercey avatar DylanPiercey commented on June 12, 2024

@J-Hoh got out another release of Marko, updating to 5.8.3 for marko and @marko/compiler should fix your issue. Looks like this one was not actually windows specific. To give you some context we recently moved a bunch of the "bundler" style logic into the new Marko 5 compiler which drastically simplifies our various plugins. These issues are growing pains around that, and I'm hoping its all resolved now.

Thanks again for taking the time to create the issue and the reproduction. Really helpful!
Let me know if there's anything else you run into, but it seems like it's good on my end.

from webpack.

J-Hoh avatar J-Hoh commented on June 12, 2024

Yep, that seems to fix any bugs I had, site is back to fully working
LGTM!

from webpack.

Related Issues (17)

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.