Comments (10)
😫 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.
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.
Does this happen with ember-cli 5.1?
(Or any versions in between?)
from ember-cli.
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.
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.
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.
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.
@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.
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.
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
the SourceNode I'm erroring on is "app" (the app folder!)
from ember-cli.
Related Issues (20)
- ember-cli 5 makes the quick start guide error HOT 3
- Generating a new project on Node 14 with ember-cli 4.12 with yarn and typescript fails HOT 2
- Support prettier v3 in blueprints HOT 3
- Support Yarn v3 with ember new Command HOT 4
- Test against yarn 3 HOT 4
- WARNING: Ember CLI v5.2.0 is not tested against Node v20.4.0. S HOT 4
- incompatible with bun (or bun is incompatible)
- `test` script should not run `lint:*` scripts HOT 1
- Drop Node 16 in ember-cli 5.4 HOT 4
- Fails to fingerprint in production mode HOT 3
- set `declaration: false` in tsconfig.json for the app blueprint.
- TypeScript error on new project: 'SetupTestOptions' is a type and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled. HOT 2
- Run Prettier standalone HOT 2
- fingerprint.prepend not working for the chunk js files HOT 3
- [email protected] has security vulnerability HOT 2
- Setup ESLint for gjs/gts
- You passed the '--typescript' flag but there is no TypeScript blueprint available. A JavaScript blueprint will be generated instead. HOT 7
- new typescript component blueprint gives eslint warning HOT 3
- Fresh app 404's on missing assets/test-support.css HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ember-cli.