Let's say I have a file called app.js. Pretty simple:  var express = require('express'); var app = express.createServer(); app.set('views', __dirname + '/views'); app.set('view engine', 'ejs'); app.get(&#...
I am currently working on an application that handles a fairly large amount of data. Currently, I've hard-coded those values into the Javascript iself (defining global arrays), but this method does not seem sustainable.  Is there a way to use Jav...
I am writing a simple program that uses a object full of dictionary words. I want to import that object from a different file as it is very large. When trying to import it I get an error that looks like Node.js doesn't know what it is.  I have al...
I want to export a few items from my localStorage to save it externally but in a format so that I can import it again later.  My attempt was to write executable code that can be pasted later in a textarea. Then the value of that textare will simply b...
Objective  Stop Cloud9 IDE from giving me the warning message.  Background  I am coding JavaScript using the Cloud9 IDE, and wherever I use a class from another file (in the same folder) I get the warning message:     VarName is not defined, please f...
I have seen a few similar questions to this but none seem to apply to my case.  I'm creating a Meteor project and using the Atmosphere package 'anti:fake' to generate test data.    For any other package, I have to import it.  Even Meteor...
I'm currently working on a project where we have to make 2 mobile apps. We decided to build those apps with react-native, so we can take advantage of the cross platform functionality.  Then we outlined the project structure. In the UI design of b...
I have a component that takes in an :itemName and spits out an html bundle containing an image. The image is different for each bundle.  Here's what I have:  import React, { Component } from 'react'; import { NavLink } from 'react-rou...
With webpack configuration it's possible to specify root of the resolving component:  resolve: {   root: [ path.join(__dirname, './src/') ],   extensions: ['', '.js', '.scss'] },   Now it is possible to import SASS...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.