Comments (12)
On second attempt all ok, it installed
from mber.
Also, for node v8.5:
SyntaxError: Unexpected token import
at createScript (vm.js:74:10)
at Object.runInThisContext (vm.js:116:10)
at Module._compile (module.js:588:28)
at Module._extensions..js (module.js:635:10)
at Object.require.extensions.(anonymous function) [as .js] (C:\Users\lifeart\AppData\Roaming\npm\node_modules\mber\n
ode_modules\babel-register\lib\node.js:152:7)
at Module.load (module.js:545:32)
at tryModuleLoad (module.js:508:12)
at Function.Module._load (module.js:500:3)
at Module.require (module.js:568:17)
at require (internal/module.js:11:18)
PS C:\Users\lifeart\Documents\Repositories> node -v
v8.5.0
from mber.
it will be nice to check node version on install
from mber.
Hi just made an official alpha release yesterday. Could you check it again? I've never tested the software on windows environments yet.
from mber.
C:\Users\lifeart\Documents\Repositories\emtest>mber s
file:///C:/Users/lifeart/AppData/Roaming/npm/node_modules/mber/node_modules/babe
l-register/lib/node.js:1
Error: Cannot find module 'express'
at Object.require.extensions.(anonymous function) [as .js] (file:///C:/Users
/lifeart/AppData/Roaming/npm/node_modules/mber/node_modules/babel-register/lib/n
ode.js:152:7)
from mber.
did you yarn install
?
from mber.
after npm install express -g
it alive, but, got new errors:
C:\Users\lifeart\Documents\Repositories\emtest>mber s
ember BUILDING: application.css...
ember BUILDING: vendor.js...
ember BUILDING: application.js...
Application build | read error: TypeError: Cannot read property 'slice' of undef
ined
at getModuleName (C:\Users\lifeart\Documents\Repositories\emtest\node_module
s\mber\lib\builders\build-application.js:100:39)
at readFileAsync.then (C:\Users\lifeart\Documents\Repositories\emtest\node_m
odules\mber\lib\builders\build-application.js:87:66)
Application build | read error: TypeError: Cannot read property 'slice' of undef
ined
at getModuleName (C:\Users\lifeart\Documents\Repositories\emtest\node_module
s\mber\lib\builders\build-application.js:100:39)
at readFileAsync.then (C:\Users\lifeart\Documents\Repositories\emtest\node_m
odules\mber\lib\builders\build-application.js:87:66)
Application build | read error: TypeError: Cannot read property 'slice' of undef
ined
at getModuleName (C:\Users\lifeart\Documents\Repositories\emtest\node_module
s\mber\lib\builders\build-application.js:100:39)
at readFileAsync.then (C:\Users\lifeart\Documents\Repositories\emtest\node_m
odules\mber\lib\builders\build-application.js:87:66)
Application build | read error: TypeError: Cannot read property 'slice' of undef
ined
at getModuleName (C:\Users\lifeart\Documents\Repositories\emtest\node_module
s\mber\lib\builders\build-application.js:100:39)
at readFileAsync.then (C:\Users\lifeart\Documents\Repositories\emtest\node_m
odules\mber\lib\builders\build-application.js:87:66)
Application build | read error: TypeError: Cannot read property 'slice' of undef
ined
at getModuleName (C:\Users\lifeart\Documents\Repositories\emtest\node_module
s\mber\lib\builders\build-application.js:100:39)
at readFileAsync.then (C:\Users\lifeart\Documents\Repositories\emtest\node_m
odules\mber\lib\builders\build-application.js:87:66)
Application build | read error: TypeError: Cannot read property 'slice' of undef
ined
at getModuleName (C:\Users\lifeart\Documents\Repositories\emtest\node_module
s\mber\lib\builders\build-application.js:100:39)
at readFileAsync.then (C:\Users\lifeart\Documents\Repositories\emtest\node_m
odules\mber\lib\builders\build-application.js:89:61)
Application build | read error: TypeError: Cannot read property 'slice' of undef
ined
at getModuleName (C:\Users\lifeart\Documents\Repositories\emtest\node_module
s\mber\lib\builders\build-application.js:100:39)
at readFileAsync.then (C:\Users\lifeart\Documents\Repositories\emtest\node_m
odules\mber\lib\builders\build-application.js:89:61)
Application build | read error: TypeError: Cannot read property 'slice' of undef
ined
at getModuleName (C:\Users\lifeart\Documents\Repositories\emtest\node_module
s\mber\lib\builders\build-application.js:100:39)
at readFileAsync.then (C:\Users\lifeart\Documents\Repositories\emtest\node_m
odules\mber\lib\builders\build-application.js:87:66)
Application build | read error: TypeError: Cannot read property 'slice' of undef
ined
at getModuleName (C:\Users\lifeart\Documents\Repositories\emtest\node_module
s\mber\lib\builders\build-application.js:100:39)
at readFileAsync.then (C:\Users\lifeart\Documents\Repositories\emtest\node_m
odules\mber\lib\builders\build-application.js:89:61)
Application build | read error: TypeError: Cannot read property 'slice' of undef
ined
at getModuleName (C:\Users\lifeart\Documents\Repositories\emtest\node_module
s\mber\lib\builders\build-application.js:100:39)
at readFileAsync.then (C:\Users\lifeart\Documents\Repositories\emtest\node_m
odules\mber\lib\builders\build-application.js:87:66)
Application build | read error: TypeError: Cannot read property 'slice' of undef
ined
at getModuleName (C:\Users\lifeart\Documents\Repositories\emtest\node_module
s\mber\lib\builders\build-application.js:100:39)
at readFileAsync.then (C:\Users\lifeart\Documents\Repositories\emtest\node_m
odules\mber\lib\builders\build-application.js:89:61)
ember BUILT: application.css in 582ms [0.00 MB] Environment: development
ember BUILT: vendor.js in 594ms [2.82 MB] Environment: development
from mber.
is your node version v10 ? and did you run install locally the mber? Thanks for the stacktrace Im also checking it now.
from mber.
I think this is mainly due to the fact that in unix paths are folder/folder/folde
r while in windows its folder\folder\folder
from mber.
@izelnakri yeah, node 10.1 x64, global mber install, and after it, npm install inside project path.
error from getModuleName(fileName, appName)
let fileName = 'C:\Users\lifeart\Documents\Repositories\emtest\src\ui\routes\not-found\template.hbs';
let appName = 'emtest';
from mber.
After this fix
function getModuleName(fileName, appName) {
const moduleName = fileName.split('src\\')[1];
return `${appName}\\src\\${moduleName.slice(0, moduleName.lastIndexOf('.'))}`;
}
have this:
from mber.
ember-resolver probably expects them to be moduleName/file
in the AMD definitions during browser js execution. Since app is running on fastboot, node.js runs your browser javascript. I'm very interested to see if you can get this to work!
from mber.
Related Issues (1)
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 mber.