menu
announcement

Spectrum is now read-only. Learn more about the decision in our official announcement.

Flood

A place to chat about load testing and answer questions.

Channels
Team

How to add Import statements?

July 5, 2021 at 4:34pm

How to add Import statements?

July 5, 2021 at 4:34pm
Hi, I'm very much a beginner - I have a new directory in my C: drive named 'floodstarter' and created a new project from command line, with default name. My imports are not recognised in the .ts file though and I cannot see how to find them (using VS code). Snippet below: import { step, TestSettings, Until, By } from "/element"; When I look at package.json the dependencies read: "/element": "2.0.4", "/element-cli": "2.0.4", Element was installed globally and this version number is correct. Help appreciated as I am stuck! Thanks Dan

July 9, 2021 at 12:08am
It seems that creating a new project did not create the necessary 'node_modules' folder. Installing an extension to look for NPM dependencies helped. Not sure why I had to install after already installing flood-cli. is not even mentioned in the install instructions...