Coder Social home page Coder Social logo

Comments (4)

evan-boissonnot avatar evan-boissonnot commented on May 24, 2024

I have got just one file : main.ts, in the src directory
and of course index.html inside too

from fuse-box.

nchanged avatar nchanged commented on May 24, 2024

what's that

webIndex: {
template: 'src/index.html',
},
webIndex: true,

It really should work, please check a lot examples in the playground folder

from fuse-box.

jpike88 avatar jpike88 commented on May 24, 2024

I have same issue. node 14.18.1, with type: module in package.json

ypeError: Cannot read property 'filename' of undefined
    at Object.<anonymous> (/Users/joshpike/Projects/formpigeon/node_modules/fuse-box/env.js:20:31)
    at Module._compile (internal/modules/cjs/loader.js:1085:14)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
    at Module.load (internal/modules/cjs/loader.js:950:32)
    at Function.Module._load (internal/modules/cjs/loader.js:790:12)
    at Module.require (internal/modules/cjs/loader.js:974:19)
    at require (internal/modules/cjs/helpers.js:93:18)
    at Object.<anonymous> (/Users/joshpike/Projects/formpigeon/node_modules/fuse-box/utils/utils.js:10:15)
    at Module._compile (internal/modules/cjs/loader.js:1085:14)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)

from fuse-box.

jpike88 avatar jpike88 commented on May 24, 2024

Problem is using es6 modules mode, these lines in env.js aren't calculated properly:

SCRIPT_FILE: require.main.filename,
SCRIPT_PATH: path.dirname(require.main.filename),

Changing them to this worked:

    SCRIPT_FILE: appRoot.path + 'fuse.js',
    SCRIPT_PATH: appRoot.path,

from fuse-box.

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.