Coder Social home page Coder Social logo

Comments (11)

oferRounds avatar oferRounds commented on July 3, 2024

@RafikiTiki any chance you can have a look?

from repack.

oferRounds avatar oferRounds commented on July 3, 2024

When running with metro, the bundle seems to do exists in this location. This is the path I see on Metro: "http://localhost:8081/artifacts/index.bundle//&platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=com.hibob.hibob:470495:36"

from repack.

oferRounds avatar oferRounds commented on July 3, 2024

@jbroma any chance you can help with this one as well?

from repack.

jbroma avatar jbroma commented on July 3, 2024

@oferRounds I'll try to look when I have some time available. Please create a reproduction repository so I can assess this as quickly as possible, thanks!

from repack.

oferRounds avatar oferRounds commented on July 3, 2024

ahmm, I can try but not sure it will get reproduced. This is the full error bellow – any idea comes to mind?

File artifacts/index.bundle for ios not found in compilation assets {
  reqId: 'req-6',
  stack: 'Error: File artifacts/index.bundle for ios not found in compilation assets\n' +
    '    at /Users/ofer.morag/Documents/Projects/node_modules/@callstack/repack/dist/webpack/Compiler.js:174:20\n' +
    '    at /Users/ofer.morag/Documents/Projects/node_modules/@callstack/repack/dist/webpack/Compiler.js:83:52\n' +
    '    at Array.forEach (<anonymous>)\n' +
    '    at callPendingResolvers (/Users/ofer.morag/Documents/Projects/node_modules/@callstack/repack/dist/webpack/Compiler.js:83:32)\n' +
    '    at Worker.<anonymous> (/Users/ofer.morag/Documents/Projects/node_modules/@callstack/repack/dist/webpack/Compiler.js:104:9)\n' +
    '    at Worker.emit (node:events:513:28)\n' +
    '    at MessagePort.<anonymous> (node:internal/worker:233:53)\n' +
    '    at [nodejs.internal.kHybridDispatch] (node:internal/event_target:731:20)\n' +
    '    at exports.emitMessage (node:internal/per_context/messageport:23:28)',
  type: 'Error'
} 
⚠ [16:33:01.194Z][DevServer] Reply already sent {
  reqId: 'req-6',
  err: {
    type: 'FastifyError',
    message: 'Reply was already sent.',
    stack: 'FastifyError: Reply was already sent.\n' +
      '    at Reply.send (/Users/ofer.morag/Documents/Projects/node_modules/@callstack/repack-dev-server/node_modules/fastify/lib/reply.js:128:26)\n' +
      '    at _Reply.notFound (/Users/ofer.morag/Documents/Projects/node_modules/@fastify/sensible/index.js:47:16)\n' +
      '    at Object.handler (file:///Users/ofer.morag/Documents/Projects/node_modules/@callstack/repack-dev-server/dist/plugins/compiler/compilerPlugin.js:75:22)',
    name: 'FastifyError',
    code: 'FST_ERR_REP_ALREADY_SENT',
    statusCode: 500
  }
} 

from repack.

RafikiTiki avatar RafikiTiki commented on July 3, 2024

Hey @oferRounds, the minimal reproduction repository would be of great help here.

What do you mean by, and how have you configured that:

The JS code is transpiled to a folder named "./artifacts".

In the pasted webpack config file, you're only specifying the entry point to be artifacts/index.js, is that correct?

from repack.

oferRounds avatar oferRounds commented on July 3, 2024

Hey @RafikiTiki
yes, exactly – only specifying the entry point to be artifacts/index.js

from repack.

oferRounds avatar oferRounds commented on July 3, 2024

Is it possible I‘m missing something else?

from repack.

oferRounds avatar oferRounds commented on July 3, 2024

@RafikiTiki is my answer to your question above helps some how?

from repack.

github-actions avatar github-actions commented on July 3, 2024

This issue has been marked as stale because it has been inactive for 30 days. Please update this issue or it will be automatically closed in 14 days.

from repack.

RafikiTiki avatar RafikiTiki commented on July 3, 2024

@oferRounds How is the code transpiled to artifacts/index.bundle? In the attached webpack config you're pointing webpack to this file as the entry, not the output.

What are you using before running webpack (and what's the reason) to transpile the code and put it in the artifacts/index.bundle?

from repack.

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.