Comments (9)
The option '--web-component' is not registered with the new command.
This is just a warning, and is related to the fact that one is currently unable to register an option with the new
command. But it still works. Sorry for the confusion with that. 😃
$ ember new my-app -b @glimmer/blueprint
Error creating new application. Removing generated directory `./my-app`
Unknown blueprint: @glimmer/blueprint
This looks like you have the wrong version of ember-cli installed globally. What do you get when you do ember -v
?
I was unable to get an error with using the beta version of ember-cli:
ember new my-app -b https://github.com/glimmerjs/glimmer-blueprint.git --web-component
Is that the command you used that produced an error?
from glimmer-application.
Thankfully, we still have our terminal open, and we happened to have run ember -v
right after getting that error. This was the output at that time:
$ ember -v
ember-cli: 2.13.0-beta.3
node: 6.0.0
os: darwin x64
And yeah, the last command you mentioned was the one that triggered the last error we mentioned.
Here is the exact order of what we ran in our terminal and what followed, after we got the last error we mentioned:
Immediately after seeing that error, we ran it again without the --web-component
flag:
$ ember new my-app -b https://github.com/glimmerjs/glimmer-blueprint.git
This created a new glimmer project just fine. Then:
$ yarn global remove ember-cli
$ yarn global add ember-cli/ember-cli
$ which ember
/Users/engineering/.nvm/versions/node/v6.0.0/bin/ember
$ npm uninstall -g ember-cli
$ which ember
/Users/engineering/.nvm/versions/node/v6.0.0/bin/ember
$ sudo npm uninstall -g ember-cli
$ which ember
/Users/engineering/.nvm/versions/node/v6.0.0/bin/ember
$ sudo npm uninstall -g ember-cli
$ sudo npm uninstall -g ember
$ which ember
/Users/engineering/.nvm/versions/node/v6.0.0/bin/ember
$ ls -alt /Users/engineering/.nvm/versions/node/v6.0.0/bin/ember
lrwxrwxr-x 1 engineering staff 58 Apr 5 16:24 /Users/engineering/.nvm/versions/node/v6.0.0/bin/ember -> ../../../../../.yarn-config/global/node_modules/.bin/ember
$ ember -v
ember-cli: 2.13.0-beta.3
node: 6.0.0
os: darwin x64
$ yarn global remove ember-cli
$ ember -v
zsh: command not found: ember
$ which ember
ember not found
$ yarn global add ember-cli/ember-cli
$ ember -v
ember-cli: 2.13.0-beta.3
node: 6.0.0
os: darwin x64
At that point, we ran ember new my-app -b @glimmer/blueprint
without issue and were able to create a new project.
That's almost definitely more information than you need to know, but hopefully some of it is helpful! 😛
from glimmer-application.
@robbiepitts
This is just a warning, and is related to the fact that one is currently unable to register an option with the new command. But it still works. Sorry for the confusion with that. 😃
Err, this seems bad. 😬 What's the plan to fix this?
from glimmer-application.
@tomdale Yes, it is bad. Here's the issue for it. I could use some help/advice. I have not yet been able to figure out a solution to this. The problem is that initializeCustomElements
gets the Application
type from node_modules/@glimmer/web-component/node_modules/@glimmer/application
but when you use initializeCustomElements
and pass in an instance of Application
the type comes from node_modules/@glimmer/application
.
from glimmer-application.
Oh, I was obviously very confused. Talking about a different error. Anyhow, the error I was talking about has been fixed in @glimmer/[email protected].
The plan for the ember-cli error is TBD. First step is creating an issue for it in ember-cli. According to @rwjblue we are able to register options with the generate
command, so I'm hoping the fix will just involve borrowing some code. But I've never gotten into ember-cli internals so I don't really know.
from glimmer-application.
@vaidehijoshi are you still running into this? I also got the error below because my blueprint was installed in a different location than the rest of my global node modules. Moving the blueprint fixed all my issues.
Error creating new application. Removing generated directory `./my-app`
Unknown blueprint: @glimmer/blueprint
from glimmer-application.
@atrama We were eventually able to create a new Glimmer app, so that Unknown blueprint: @glimmer/blueprint
error ultimately didn't end up being a blocker for us! But, we figured that it was possible someone else would eventually run into this same problem, so we just wanted to flag it for the team so that they'd be aware of it.
from glimmer-application.
@vaidehijoshi @atrama I also ran into this issue. The remote blueprint workaround worked for me as well. It seems like (for at least this iteration) migrating to a global yarn install of ember-cli may be a pre-requisite for using @glimmer/blueprint
.
from glimmer-application.
I believe this has been addressed upstream. Thank you!
from glimmer-application.
Related Issues (20)
- Documentation for running multiple apps on the same page HOT 1
- Helper runs every few milliseconds after a tracked property changes HOT 1
- Things That Need To Be Fixed HOT 3
- Can't use `async` / `await` out of the box HOT 3
- Sourcemaps seem to have issues HOT 4
- Document (and improve) using npm packages HOT 3
- Ergonomics / Polish / Initial Experience "Punch List" HOT 2
- Accessing ENV HOT 1
- Advanced helpers HOT 1
- `renderComponent` doesn't accept args or attributes HOT 3
- userland files HOT 1
- ember-cli-deploy doesn't work with latest glimmer-application HOT 1
- Argument and property naming conflict HOT 7
- Docs lacking: how do I use Glimmer as a view layer for my app? HOT 1
- Nested components don't appear to work as documented HOT 2
- Tracked property on a service doesn't invalidate tag HOT 1
- `@tracked('args')` in component nested within a `{{#each}}` seem to invalidate with old values HOT 2
- `renderComponent` options API proposal HOT 3
- Return value of an action argument to a component always seems to be undefined for me
- Running `ember test` on a Glimmer App breaks if run on BashOnWindows HOT 6
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 glimmer-application.