Code Monkey home page Code Monkey logo

Comments (10)

mansona avatar mansona commented on June 3, 2024 1

😫 here's me thinking it's an exact version problem and it's because of the name of the app 😫

I don't know what to do with this issue now 🤔 I would think that we should close it since it's clearly something to do with ember-data's strange build system, but it's a build issue that people will feel with a newly generated app from ember-cli so I kinda want to leave this open 🤔

I suspected it was something to do with rollup because looking at the file it's clearly been put through a rollup process (rollup loves to add _1 to all the imported variables) so it is likely that it's because of ember-data's strange rollup build thingy leaking out 😞

from ember-cli.

mansona avatar mansona commented on June 3, 2024 1

I'm not sure I would agree that it's a broccoli issue if it goes away when you remove the ember-data dependency 😂 the fact that broccoli is doing an instance of check just means that it relies on all parts of the app discovering the exact same SourceNodeWrapper class when importing it. It's possible that ember-data's internal rollup is doing something odd and creating a second copy somehow which would then fail the instance of check.

It's true that we could work around this by changing broccoli's implementation to use node.constructor.name to check if the node is a SorceNodeWrapper but that's brittle in a different way

from ember-cli.

NullVoxPopuli avatar NullVoxPopuli commented on June 3, 2024

Does this happen with ember-cli 5.1?
(Or any versions in between?)

from ember-cli.

mansona avatar mansona commented on June 3, 2024

oooo intersting... it does not happen in [email protected]:

  • EMBER_CLI_PNPM=true npx [email protected] new --pnpm ember-5-1
  • ember build --watch
  • 🎉

from ember-cli.

mansona avatar mansona commented on June 3, 2024

I also tested it in [email protected] explicitly and that worked:

  • EMBER_CLI_PNPM=true npx [email protected] new --pnpm ember-5-2-0
  • cd ember-5-2-0
  • ember build --watch
  • 🎉 it worked

from ember-cli.

Windvis avatar Windvis commented on June 3, 2024

I think it's the same issue as this one: emberjs/data#8606

It seems related to the folder name. If it includes ember-data it throws that error. I haven't looked into it myself, just noticed the folder name also included ember-data in the original post.

from ember-cli.

Windvis avatar Windvis commented on June 3, 2024

It seems to be a broccoli issue, actually. This issue was mentioned in the other thread: broccolijs/broccoli#503

Keeping it open for visibility makes sense I think 👍.

from ember-cli.

runspired avatar runspired commented on June 3, 2024

@mansona EmberData does not do anything custom in its build at this point. My suspicion is broccoli or some associated ember-cli dep has a loose check somewhere that more or less amounts to name.startsWith(addonName)

from ember-cli.

KroneckerDeIta avatar KroneckerDeIta commented on June 3, 2024

Anyone got a solution or workaround for this? I've created a fork of:

https://www.npmjs.com/package/ember-data-hal-9000

and I'm bumping it to 5.4, but getting the mentioned errors.

Edit: I guess the only workaround is to change the name of the package for my fork...

from ember-cli.

NullVoxPopuli avatar NullVoxPopuli commented on June 3, 2024

I'm getting a similar problem on non-ember-data-named-projects, like here:
NullVoxPopuli/ember-data-resources#392

both projects are named test-app and test-embroider-app

here is the error, it looks like something has gone wrong with broccoli -- potentially the broccoli deps don't correctly declare peers or something -- gonna try some resolutions/overrides
image

the SourceNode I'm erroring on is "app" (the app folder!)

from ember-cli.

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.